EnderWinner

NGinx base config

Jan 28th, 2020
685
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×