ubuntu server guideindex.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name _; location / { # First attempt to serve request as file, then # as directory, then fall back file to look like this: server { listen 80; root /srv/my-site/html; 290 index index.html; server_name my-site.org www.my-site.org; location / { try_files $uri $uri/ =404; } } Make sure to create and save it to /etc/nginx/sites- available/. Make sure to give each site a unique server_name and a different listen port number. Next, enable the site by creating a symlink to it from the 0 码力 | 486 页 | 3.33 MB | 1 年前3
共 1 条
- 1













