You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
533 B

5 years ago
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. location / {
  5. root /usr/share/nginx/html;
  6. index index.html index.htm index.php;
  7. }
  8. error_page 500 502 503 504 /50x.html;
  9. location = /50x.html {
  10. root /usr/share/nginx/html;
  11. }
  12. location ~ \.php$ {
  13. fastcgi_pass php:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME /www/$fastcgi_script_name;
  16. include fastcgi_params;
  17. }
  18. access_log /var/log/nginx/access.log;
  19. }