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.

30 lines
712 B

2 years ago
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. #server_name localhost;
  5. root /var/www/html;
  6. #access_log /var/log/nginx/host.access.log main;
  7. location / {
  8. index index.html index.htm;
  9. }
  10. #error_page 404 /404.html;
  11. # redirect server error pages to the static page /50x.html
  12. #
  13. error_page 500 502 503 504 /50x.html;
  14. location = /50x.html {
  15. root /var/www/html;
  16. }
  17. location ~ \.pl|cgi$ {
  18. try_files $uri =404;
  19. fastcgi_pass unix:/run/fcgiwrap.socket;
  20. fastcgi_param SERVER_NAME \$http_host;
  21. fastcgi_index index.php;
  22. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23. include fastcgi_params;
  24. }
  25. }