daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Jan 26th, 2017 178 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen myip:80;
  3.         listen [myip]:80;
  4.  
  5.  
  6.         server_name mydomain.com www.mydomain.com;
  7.  
  8.         root   /var/www/mydomain.com/web/;
  9.  
  10.  
  11.  
  12.         index index.html index.htm index.php index.cgi index.pl index.xhtml;
  13.  
  14.  
  15.         location ~ \.shtml$ {
  16.             ssi on;
  17.         }
  18.  
  19.  
  20.         error_page 400 /error/400.html;
  21.         error_page 401 /error/401.html;
  22.         error_page 403 /error/403.html;
  23.         error_page 404 /error/404.html;
  24.         error_page 405 /error/405.html;
  25.         error_page 500 /error/500.html;
  26.         error_page 502 /error/502.html;
  27.         error_page 503 /error/503.html;
  28.         recursive_error_pages on;
  29.         location = /error/400.html {
  30.  
  31.             internal;
  32.         }
  33.         location = /error/401.html {
  34.  
  35.             internal;
  36.         }
  37.         location = /error/403.html {
  38.  
  39.             internal;
  40.         }
  41.         location = /error/404.html {
  42.  
  43.             internal;
  44.         }
  45.         location = /error/405.html {
  46.  
  47.             internal;
  48.         }
  49.         location = /error/500.html {
  50.  
  51.             internal;
  52.         }
  53.         location = /error/502.html {
  54.  
  55.             internal;
  56.         }
  57.         location = /error/503.html {
  58.  
  59.             internal;
  60.         }
  61.  
  62.         error_log /var/log/ispconfig/httpd/mydomain.com/error.log;
  63.         access_log /var/log/ispconfig/httpd/mydomain.com/access.log combined;
  64.  
  65.         location ~ /\.(?!well-known/acme-challenge/) {
  66.             deny all;
  67.             access_log off;
  68.             log_not_found off;
  69.         }
  70.  
  71.         location = /favicon.ico {
  72.             log_not_found off;
  73.             access_log off;
  74.         }
  75.  
  76.         location = /robots.txt {
  77.             allow all;
  78.             log_not_found off;
  79.             access_log off;
  80.         }
  81.  
  82.         location /stats/ {
  83.  
  84.             index index.html index.php;
  85.             auth_basic "Members Only";
  86.             auth_basic_user_file /var/www/clients/client1/web6/web/stats/.htpasswd_stats;
  87.         }
  88.  
  89.         location ^~ /awstats-icon {
  90.             alias /usr/share/awstats/icon;
  91.         }
  92.  
  93.         location ~ \.php$ {
  94.             try_files /5f822da301d896a0924d0109381913d6.htm @php;
  95.         }
  96.  
  97.         location @php {
  98.             try_files $uri =404;
  99.             include /etc/nginx/fastcgi_params;
  100.             fastcgi_pass unix:/var/lib/php5-fpm/web6.sock;
  101.             fastcgi_index index.php;
  102.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  103.             fastcgi_intercept_errors on;
  104.         }
  105.  
  106.         location /cgi-bin/ {
  107.             try_files $uri =404;
  108.             include /etc/nginx/fastcgi_params;
  109.             root /var/www/clients/client1/web6;
  110.             gzip off;
  111.             fastcgi_pass  unix:/var/run/fcgiwrap.socket;
  112.             fastcgi_index index.cgi;
  113.             fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  114.             fastcgi_intercept_errors on;
  115.         }
  116.  
  117.  
  118.  
  119.         location / {
  120.                 index index.php index.html index.php index.htm;
  121.                 try_files $uri $uri/ @rewriteapp;
  122.         }
  123.  
  124.         location @rewriteapp {
  125.                 rewrite ^(.*)$ /app.php/$1 last;
  126.         }
  127.  
  128.  
  129.         location ~ /\.well-known/acme-challenge/ {
  130.        root /usr/local/ispconfig/interface/acme/;
  131.        index index.html index.htm;
  132.        try_files $uri =404;
  133.         }
  134.  
  135.  
  136. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top