Guest User

Untitled

a guest
Aug 7th, 2014
106
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #AUTOMATICALLY GENERATED - DO NO EDIT!
  3.  
  4.  
  5.  
  6. server {
  7. listen *:80;
  8.  
  9.  
  10. server_name mailingboss.com;
  11.  
  12. access_log /var/log/nginx/mailingbosscom.access.log;
  13. error_log /var/log/nginx/mailingbosscom.error.log;
  14.  
  15. root /srv/mailingboss;
  16. index index.html index.htm index.php;
  17.  
  18. # This order might seem weird - this is attempted to match last if rules below fail.
  19. location / {
  20. try_files $uri $uri/ /index.php?$args;
  21. }
  22.  
  23. # Add trailing slash to */wp-admin requests.
  24. rewrite /wp-admin$ $scheme://$host$uri/ permanent;
  25.  
  26. # Directives to send expires headers and turn off 404 error logging.
  27. location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
  28. access_log off; log_not_found off; expires max;
  29. }
  30.  
  31. location = /favicon.ico {
  32. log_not_found off;
  33. access_log off;
  34. }
  35. location = /robots.txt {
  36. allow all;
  37. log_not_found off;
  38. access_log off;
  39. }
  40. # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
  41. # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
  42. location ~ /\. {
  43. deny all;
  44. }
  45. # Deny access to any files with a .php extension in the uploads directory
  46. # Works in sub-directory installs and also in multisite network
  47. # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
  48. location ~* /(?:uploads|files)/.*\.php$ {
  49. deny all;
  50. }
  51.  
  52.  
  53.  
  54. location ~ [^/]\.php(/|$) {
  55.  
  56. # Zero-day exploit defense.
  57. # http://forum.nginx.org/read.php?2,88845,page=3
  58. # Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
  59. # Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
  60. try_files $uri =404;
  61. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  62.  
  63. fastcgi_index index.php;
  64. include fcgi.conf;
  65. fastcgi_pass unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock;
  66. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  67.  
  68. }
  69.  
  70. }
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.

×