Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl;
- #listen [::]:80 default_server;
- root /var/www/reports/;
- index index.html index.htm index.nginx-debian.html;
- server_name reports.bicomsystems.com;
- ssl_certificate /home/sanjinlisic/apps/cert/portal.crt;
- ssl_certificate_key /home/sanjinlisic/apps/cert/portal.key;
- # kill browser cache
- add_header Last-Modified $date_gmt;
- add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
- if_modified_since off;
- expires off;
- etag off;
- # turn off nginx side cache
- # don't cache it
- proxy_no_cache 1;
- # even if cached, don't try to use it
- proxy_cache_bypass 1;
- #location ~ \.(gif|jpg|jpeg|png) {
- # rewrite ^.*([^\/]*\.(gif|jpg|png|jpeg))$ /images/$1 break;
- #}
- #location ~ \.js {
- # rewrite ^.*([^\/]*\.js)$ /scripts/$1;
- # try_files $uri =404;
- # last;
- # }
- # location / {
- # if (!-e $request_filename) {
- # rewrite ^(.*)$ /index.html break;
- # }
- #
- # }
- location / {
- try_files $uri $uri/ @rewrites;
- }
- location @rewrites {
- rewrite ^(.+)$ /index.html last;
- }
- }
- server {
- listen 80;
- server_name reports.bicomsystems.com;
- return 301 https://$server_name$request_uri;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement