SHARE
TWEET

Untitled

a guest Jan 15th, 2020 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.     listen [::]:80;
  4.     server_name www.website1.com;
  5.     return 301 https://$host$request_uri;
  6. }
  7.  
  8. server {
  9.     listen 443 ssl http2;
  10.     listen [::]:443 ssl http2;
  11.  
  12.     root /config/www/website1.com;
  13.     index index.html index.htm index.php;
  14.  
  15.     server_name www.website1.com;
  16.  
  17.     include /config/nginx/ssl.conf;
  18.  
  19.     client_max_body_size 0;
  20.  
  21.     location / {
  22.         try_files $uri $uri/ /index.html /index.php?$args =404;
  23.     }
  24. }
  25.  
  26. server {
  27.     listen 443 ssl http2;
  28.     listen [::]:443 ssl http2;
  29.  
  30.     root /config/www/website1.com/test;
  31.     index index.html index.htm index.php;
  32.  
  33.     server_name test.website1.com;
  34.  
  35.     include /config/nginx/ssl.conf;
  36.  
  37.     client_max_body_size 0;
  38.  
  39.     location / {
  40.         try_files $uri $uri/ /index.html /index.php?$args =404;
  41.     }
  42. }
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
Top