This is my new current config: ############## Document Root ####################### root /home/sayres/web; server { ############### General Settings #################### listen 80; server_name _; location / { # root /usr/share/nginx/html; index index.html index.htm index.php; } error_page 404 /404.html; locatioby sayres - Nginx Mailing List - English
Sorry dude Can you explain by example???by sayres - Nginx Mailing List - English
Sorry dude Can you explain by example???by sayres - Nginx Mailing List - English
Thisis my defualt config: # # The default server # server { listen 80; server_name _; #charset koi8-r; #access_log logs/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm index.php; } error_page 404 /404.html; location = /404.html { root /usr/share/nginxby sayres - Nginx Mailing List - English
Hi . How can I change the root directory in nginx?? Now my root directory is /usr/share/nginx/html. I want change it, like ~/webby sayres - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |