SHARE
TWEET

Untitled

a guest Sep 19th, 2018 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen      %ip%:%proxy_ssl_port%;
  3.     server_name %domain_idn% %alias_idn%;
  4.     ssl         on;
  5.     ssl_certificate      %ssl_pem%;
  6.     ssl_certificate_key  %ssl_key%;
  7.     error_log  /var/log/%web_system%/domains/%domain%.error.log error;
  8.     log_not_found off;
  9.  
  10.     location / {
  11.         add_header         Strict-Transport-Security "max-age=31536000" always;
  12.  
  13.         proxy_buffering off;
  14.         proxy_set_header X-Real-IP $remote_addr;
  15.         proxy_set_header User-Agent $http_user_agent;
  16.         proxy_set_header Accept $http_accept;
  17.         proxy_set_header Accept-Encoding $http_accept_encoding;
  18.         proxy_pass      https://%ip%:8083;
  19.  
  20.         sub_filter '%ip%/phpmyadmin' '%domain_idn%/phpmyadmin';
  21.     }
  22.  
  23.     location /phpmyadmin {
  24.         add_header      Strict-Transport-Security "max-age=31536000" always;
  25.  
  26.         proxy_pass https://%ip%:8443;
  27.         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
  28.                 root           %sdocroot%;
  29.                 expires        max;
  30.                 try_files      $uri @fallback;
  31.         }
  32.     }
  33.  
  34.     location /error/ {
  35.         alias   %home%/%user%/web/%domain%/document_errors/;
  36.     }
  37.  
  38.     location @fallback {
  39.         proxy_pass      https://%ip%:8083;
  40.     }
  41.  
  42.     location ~ /\.ht    {return 404;}
  43.     location ~ /\.svn/  {return 404;}
  44.     location ~ /\.git/  {return 404;}
  45.     location ~ /\.hg/   {return 404;}
  46.     location ~ /\.bzr/  {return 404;}
  47.  
  48.     include %home%/%user%/conf/web/snginx.%domain%.conf*;
  49. }
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