Skip to content

Nginx subfolders

I wanted to publish another site on my server. Now I have Nginx and WordPress but how to publish another site lets say on address malaczynski.pl/test/?

We will use Nginx web server.

I put all new site files in /var/www/test folder,
now I open Nginx config:

 sudo nano /etc/nginx/sites-available/wordpress.conf

and add before last } :

location /test {
    root /var/www;
}

Comments are closed, but trackbacks and pingbacks are open.