I have installed nginx
on my Ubunut 12.04, I am not able to change the root directory for the nginx,
This is the default nginx
configuration file:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
#root /usr/share/nginx/html;
root /var/www
index index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
}
I tried changing root to /var/www/
but some how it doesn't want to change.
I tried restarting the nginx
but I am not able to change the root directory.
nginx -t
to check for syntax errors.