changed root
This commit is contained in:
+1
-2
@@ -28,12 +28,11 @@ http {
|
|||||||
access_log /var/log/nginx/access.log compression;
|
access_log /var/log/nginx/access.log compression;
|
||||||
|
|
||||||
# where the root here
|
# where the root here
|
||||||
root /var/www;
|
root /usr/share/nginx/html;
|
||||||
# what file to server as index
|
# what file to server as index
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html
|
|
||||||
# First attempt to serve request as file, then
|
# First attempt to serve request as file, then
|
||||||
# as directory, then fall back to redirecting to index.html
|
# as directory, then fall back to redirecting to index.html
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user