Use absolute path for root directory

This commit is contained in:
Chunyang Wang
2016-12-01 16:57:34 +08:00
committed by GitHub
parent f8e5e57540
commit 7f0de6312e

View File

@@ -17,7 +17,7 @@ http {
server_name localhost;
location / {
root html;
root /usr/share/nginx/html;
index index.html index.htm;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';