Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name www.website1.com;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- root /config/www/website1.com;
- index index.html index.htm index.php;
- server_name www.website1.com;
- include /config/nginx/ssl.conf;
- client_max_body_size 0;
- location / {
- try_files $uri $uri/ /index.html /index.php?$args =404;
- }
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- root /config/www/website1.com/test;
- index index.html index.htm index.php;
- server_name test.website1.com;
- include /config/nginx/ssl.conf;
- client_max_body_size 0;
- location / {
- try_files $uri $uri/ /index.html /index.php?$args =404;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement