• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question How to redirect a single host directory to another folder

PaulMC

New Pleskian
I'm trying to set up an application that is running in Nginx only hosting mode.

I need to redirect the directory from /var/www/vhosts/domain to /var/www/newdirectory/

How can I do this?
 
So the application is installed in /var/www/app1/

The web facing directory is located in /var/www/app1/public/

I need to setup a subdomain that points to that public folder.

I have tried to change the home folder in the hosting settings but it doesn't allow you to set it to system folders.
 
Back
Top