Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 46.226.12.232:443;
- server_name richardhagen.no www.richardhagen.no;
- ssl on;
- ssl_certificate /home/richard/conf/web/ssl.richardhagen.no.pem;
- ssl_certificate_key /home/richard/conf/web/ssl.richardhagen.no.key;
- error_log /var/log/httpd/domains/richardhagen.no.error.log error;
- location / {
- proxy_pass https://46.226.12.232:8443;
- 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)$ {
- root /home/richard/web/richardhagen.no/public_html;
- access_log /var/log/httpd/domains/richardhagen.no.log combined;
- access_log /var/log/httpd/domains/richardhagen.no.bytes bytes;
- expires max;
- try_files $uri @fallback;
- }
- }
- location /error/ {
- alias /home/richard/web/richardhagen.no/document_errors/;
- }
- location @fallback {
- proxy_pass https://46.226.12.232:8443;
- }
- location ~ /\.ht {return 404;}
- location ~ /\.svn/ {return 404;}
- location ~ /\.git/ {return 404;}
- location ~ /\.hg/ {return 404;}
- location ~ /\.bzr/ {return 404;}
- include /home/richard/conf/web/snginx.richardhagen.no.conf*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement