Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. #listen [::]:80 default_server;
  4.  
  5. root /var/www/reports/;
  6. index index.html index.htm index.nginx-debian.html;
  7.  
  8. server_name reports.bicomsystems.com;
  9.  
  10. ssl_certificate /home/sanjinlisic/apps/cert/portal.crt;
  11. ssl_certificate_key /home/sanjinlisic/apps/cert/portal.key;
  12.  
  13.  
  14. # kill browser cache
  15. add_header Last-Modified $date_gmt;
  16. add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
  17. if_modified_since off;
  18. expires off;
  19. etag off;
  20.  
  21. # turn off nginx side cache
  22. # don't cache it
  23. proxy_no_cache 1;
  24. # even if cached, don't try to use it
  25. proxy_cache_bypass 1;
  26.  
  27.  
  28. #location ~ \.(gif|jpg|jpeg|png) {
  29. # rewrite ^.*([^\/]*\.(gif|jpg|png|jpeg))$ /images/$1 break;
  30. #}
  31.  
  32. #location ~ \.js {
  33. # rewrite ^.*([^\/]*\.js)$ /scripts/$1;
  34. # try_files $uri =404;
  35. # last;
  36. # }
  37.  
  38. # location / {
  39. # if (!-e $request_filename) {
  40. # rewrite ^(.*)$ /index.html break;
  41. # }
  42. #
  43. # }
  44.  
  45. location / {
  46. try_files $uri $uri/ @rewrites;
  47. }
  48.  
  49. location @rewrites {
  50. rewrite ^(.+)$ /index.html last;
  51. }
  52.  
  53.  
  54. }
  55.  
  56. server {
  57. listen 80;
  58.  
  59. server_name reports.bicomsystems.com;
  60.  
  61. return 301 https://$server_name$request_uri;
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement