Advertisement
EnderWinner

NGinx base config

Jan 28th, 2020
1,198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.50 KB | None | 0 0
  1. server {
  2. listen [::]:80 80;
  3. server_name _;
  4. location / {
  5. root /usr/share/nginx/html;
  6. index index.php index.html index.htm;
  7. }
  8. error_page 404 /404.html;
  9. location = /404.html {
  10. root /usr/share/nginx/html;
  11. }
  12. error_page 500 502 503 504 /50x.html;
  13. location = /50x.html {
  14. root /usr/share/nginx/html;
  15. }
  16. location ~ \.php$ {
  17. root /usr/share/nginx/html;
  18. fastcgi_pass 127.0.0.1:9000;
  19. fastcgi_index index.php;
  20. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  21. include fastcgi_params;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement