Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name mysite.gr www.mysite.gr;
- charset off;
- index index.php;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/mysite.gr/*.conf;
- access_log /var/www/httpd-logs/mysite.gr.access.log;
- error_log /var/www/httpd-logs/mysite.gr.error.log notice;
- ssi on;
- set $root_path /var/www/mysite/data/www/mysite.gr;
- root $root_path;
- listen 163.172.109.14:80;
- include /etc/nginx/vhosts-resources/mysite/*.conf;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @fallback;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
- try_files $uri $uri/ @fallback;
- }
- location / {
- try_files /does_not_exists @fallback;
- }
- }
- location @fallback {
- proxy_pass http://127.0.0.1:8080;
- proxy_redirect http://127.0.0.1:8080 /;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- }
- gzip on;
- gzip_comp_level 4;
- gzip_disable "msie6";
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
- return 301 https://$host:443$request_uri;
- }
- server {
- server_name mysite.gr www.mysite.gr;
- ssl on;
- ssl_certificate "/var/www/httpd-cert/mysite/mysite.gr_le2.crtca";
- ssl_certificate_key "/var/www/httpd-cert/mysite/mysite.gr_le2.key";
- charset off;
- index index.php;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/mysite.gr/*.conf;
- access_log /var/www/httpd-logs/mysite.gr.access.log;
- error_log /var/www/httpd-logs/mysite.gr.error.log notice;
- ssi on;
- set $root_path /var/www/mysite/data/www/mysite.gr;
- root $root_path;
- listen 163.172.109.14:443;
- include /etc/nginx/vhosts-resources/mysite/*.conf;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @fallback;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
- try_files $uri $uri/ @fallback;
- }
- location / {
- try_files /does_not_exists @fallback;
- }
- }
- location @fallback {
- proxy_pass http://127.0.0.1:8080;
- proxy_redirect http://127.0.0.1:8080 /;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- }
- gzip on;
- gzip_comp_level 4;
- gzip_disable "msie6";
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
- ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;
- ssl_prefer_server_ciphers on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- add_header Strict-Transport-Security "max-age=31536000;";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement