Andrei Belov | e6157b8 | 2019-01-22 20:06:25 +0300 | [diff] [blame] | 1 | server { |
| 2 | listen 80; |
| 3 | server_name localhost; |
| 4 | |
Andrei Belov | e6157b8 | 2019-01-22 20:06:25 +0300 | [diff] [blame] | 5 | #access_log /var/log/nginx/host.access.log main; |
| 6 | |
| 7 | location / { |
| 8 | root /usr/share/nginx/html; |
| 9 | index index.html index.htm; |
| 10 | } |
| 11 | |
| 12 | #error_page 404 /404.html; |
| 13 | |
| 14 | # redirect server error pages to the static page /50x.html |
| 15 | # |
| 16 | error_page 500 502 503 504 /50x.html; |
| 17 | location = /50x.html { |
| 18 | root /usr/share/nginx/html; |
| 19 | } |
| 20 | |
| 21 | # proxy the PHP scripts to Apache listening on 127.0.0.1:80 |
| 22 | # |
| 23 | #location ~ \.php$ { |
| 24 | # proxy_pass http://127.0.0.1; |
| 25 | #} |
| 26 | |
| 27 | # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 |
| 28 | # |
| 29 | #location ~ \.php$ { |
| 30 | # root html; |
| 31 | # fastcgi_pass 127.0.0.1:9000; |
| 32 | # fastcgi_index index.php; |
| 33 | # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; |
| 34 | # include fastcgi_params; |
| 35 | #} |
| 36 | |
| 37 | # deny access to .htaccess files, if Apache's document root |
| 38 | # concurs with nginx's one |
| 39 | # |
| 40 | #location ~ /\.ht { |
| 41 | # deny all; |
| 42 | #} |
| 43 | } |
| 44 | |