Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen xx.xx.xx.xx:80;
- listen [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]:80;
- server_name mydomainname.com www.mydomainname.com;
- root /var/www/mydomainname.com/web/;
- index index.html index.htm index.php index.cgi index.pl index.xhtml;
- location ~ \.shtml$ {
- ssi on;
- }
- error_page 400 /error/400.html;
- error_page 401 /error/401.html;
- error_page 403 /error/403.html;
- error_page 404 /error/404.html;
- error_page 405 /error/405.html;
- error_page 500 /error/500.html;
- error_page 502 /error/502.html;
- error_page 503 /error/503.html;
- recursive_error_pages on;
- location = /error/400.html {
- internal;
- }
- location = /error/401.html {
- internal;
- }
- location = /error/403.html {
- internal;
- }
- location = /error/404.html {
- internal;
- }
- location = /error/405.html {
- internal;
- }
- location = /error/500.html {
- internal;
- }
- location = /error/502.html {
- internal;
- }
- location = /error/503.html {
- internal;
- }
- error_log /var/log/ispconfig/httpd/mydomainname.com/error.log;
- access_log /var/log/ispconfig/httpd/mydomainname.com/access.log combined;
- location ~ /\.(?!well-known/acme-challenge/) {
- deny all;
- access_log off;
- log_not_found off;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location /stats/ {
- index index.html index.php;
- auth_basic "Members Only";
- auth_basic_user_file /var/www/clients/client1/web6/web/stats/.htpasswd_stats;
- }
- location ^~ /awstats-icon {
- alias /usr/share/awstats/icon;
- }
- location ~ \.php$ {
- try_files /302e261d29653b05ffb56715b8aafeb9.htm @php;
- }
- location @php {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/run/hhvm/hhvm.web6.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- error_page 500 501 502 503 = @phpfallback;
- }
- location @phpfallback {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/lib/php5-fpm/web6.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- }
- location /cgi-bin/ {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- root /var/www/clients/client1/web6;
- gzip off;
- fastcgi_pass unix:/var/run/fcgiwrap.socket;
- fastcgi_index index.cgi;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- }
- location / {
- # phpBB uses index.htm
- index index.php index.html index.htm;
- try_files $uri $uri/ @rewriteapp;
- }
- location @rewriteapp {
- rewrite ^(.*)$ /app.php/$1 last;
- }
- # Deny access to internal phpbb files.
- location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
- deny all;
- # deny was ignored before 0.8.40 for connections over IPv6.
- # Use internal directive to prohibit access on older versions.
- internal;
- }
- location /install/ {
- # phpBB uses index.htm
- try_files $uri $uri/ @rewrite_installapp;
- # Pass the php scripts to fastcgi server specified in upstream declaration.
- location ~ \.php(/|$) {
- # Unmodified fastcgi_params from nginx distribution.
- include fastcgi_params;
- # Necessary for php.
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- fastcgi_param DOCUMENT_ROOT $realpath_root;
- try_files $uri $uri/ /install/app.php$is_args$args;
- fastcgi_pass unix:/var/run/hhvm/hhvm.web6.sock;
- }
- }
- # Pass the php scripts to fastcgi server specified in upstream declaration.
- location ~ \.php(/|$) {
- # Unmodified fastcgi_params from nginx distribution.
- include fastcgi_params;
- # Necessary for php.
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- fastcgi_param DOCUMENT_ROOT $realpath_root;
- try_files $uri $uri/ /app.php$is_args$args;
- fastcgi_pass unix:/var/run/hhvm/hhvm.web6.sock;
- }
- location @rewrite_installapp {
- rewrite ^(.*)$ /install/app.php/$1 last;
- }
- location ~ /\.well-known/acme-challenge/ {
- root /usr/local/ispconfig/interface/acme/;
- index index.html index.htm;
- try_files $uri =404;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement