Advertisement
Guest User

Untitled

a guest
Nov 4th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen      46.226.12.232:443;
  3.     server_name richardhagen.no www.richardhagen.no;
  4.     ssl         on;
  5.     ssl_certificate      /home/richard/conf/web/ssl.richardhagen.no.pem;
  6.     ssl_certificate_key  /home/richard/conf/web/ssl.richardhagen.no.key;
  7.     error_log  /var/log/httpd/domains/richardhagen.no.error.log error;
  8.  
  9.     location / {
  10.         proxy_pass      https://46.226.12.232:8443;
  11.         location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|exe|pdf|doc|xls|ppt|txt|odt|ods|odp|odf|tar|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm)$ {
  12.             root           /home/richard/web/richardhagen.no/public_html;
  13.             access_log     /var/log/httpd/domains/richardhagen.no.log combined;
  14.             access_log     /var/log/httpd/domains/richardhagen.no.bytes bytes;
  15.             expires        max;
  16.             try_files      $uri @fallback;
  17.         }
  18.     }
  19.  
  20.     location /error/ {
  21.         alias   /home/richard/web/richardhagen.no/document_errors/;
  22.     }
  23.  
  24.     location @fallback {
  25.         proxy_pass      https://46.226.12.232:8443;
  26.     }
  27.  
  28.     location ~ /\.ht    {return 404;}
  29.     location ~ /\.svn/  {return 404;}
  30.     location ~ /\.git/  {return 404;}
  31.     location ~ /\.hg/   {return 404;}
  32.     location ~ /\.bzr/  {return 404;}
  33.  
  34.     include /home/richard/conf/web/snginx.richardhagen.no.conf*;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement