SHARE
TWEET

Untitled

a guest Apr 30th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80 default_server reuseport;
  3.     server_name test.example.com;
  4.  
  5.     location / {
  6.       add_header Access-Control-Allow-Origin "*";
  7.     }
  8.  
  9.     return 301 https://$server_name$request_uri;
  10. }
  11.  
  12.  
  13. server {
  14.     listen 443 ssl http2 default_server reuseport;
  15.     server_name test.example.com;
  16.  
  17.     ssl_certificate /etc/letsencrypt/live/test.example.com/fullchain.pem;
  18.     ssl_certificate_key /etc/letsencrypt/live/test.example.com/privkey.pem;
  19.  
  20.     ssl_client_certificate /etc/nginx/client-cert/ca.crt;
  21.     ssl_verify_client optional;
  22.  
  23.     root /var/www/erp-develop/public;
  24.  
  25.     location / {
  26.       try_files $uri $uri/ /index.php$is_args$args;
  27.  
  28.       add_header Access-Control-Allow-Origin "*";
  29.       add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
  30.       expires -1;
  31.       index index.php;
  32.  
  33.     }
  34.    ...
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top