Guest User

Untitled

a guest
May 25th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. server {
  2. listen 15.19.51.166:80;
  3. server_name vesta.jagga.com;
  4. root /home/admin/web/vesta.jagga.com/public_html;
  5. index index.php index.html index.htm;
  6. access_log /var/log/nginx/domains/vesta.jagga.com.log combined;
  7. access_log /var/log/nginx/domains/vesta.jagga.com.bytes bytes;
  8. error_log /var/log/nginx/domains/vesta.jagga.com.error.log error;
  9.  
  10. location / {
  11.  
  12. location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
  13. expires max;
  14. }
  15.  
  16. location ~ [^/]\.php(/|$) {
  17. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  18. if (!-f $document_root$fastcgi_script_name) {
  19. return 404;
  20. }
  21.  
  22. fastcgi_pass 127.0.0.1:9001;
  23. fastcgi_index index.php;
  24. include /etc/nginx/fastcgi_params;
  25. }
  26. }
  27.  
  28. error_page 403 /error/404.html;
  29. error_page 404 /error/404.html;
  30. error_page 500 502 503 504 /error/50x.html;
  31.  
  32. location /error/ {
  33. alias /home/admin/web/vesta.jagga.com/document_errors/;
  34. }
  35.  
  36. location ~* "/\.(htaccess|htpasswd)$" {
  37. deny all;
  38. return 404;
  39. }
  40.  
  41. include /etc/nginx/conf.d/phpmyadmin.inc*;
  42. include /etc/nginx/conf.d/phppgadmin.inc*;
  43. include /etc/nginx/conf.d/webmail.inc*;
  44.  
  45. include /home/admin/conf/web/nginx.jagga.egooty.com.conf*;
  46. }
Add Comment
Please, Sign In to add comment