Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8.8.8.8:443 ssl http2;
- server_name subdomain.mydomain.com ;
- root /home/master/web/subdomain.mydomain.com/public_html;
- index index.php index.html index.htm;
- access_log /var/log/nginx/domains/subdomain.mydomain.com.log combined;
- access_log /var/log/nginx/domains/subdomain.mydomain.com.bytes bytes;
- error_log /var/log/nginx/domains/subdomain.mydomain.com.error.log error;
- ssl_certificate /home/master/conf/web/subdomain.mydomain.com/ssl/subdomain.mydomain.com.pem;
- ssl_certificate_key /home/master/conf/web/subdomain.mydomain.com/ssl/subdomain.mydomain.com.key;
- ssl_stapling on;
- ssl_stapling_verify on;
- include /home/master/conf/web/subdomain.mydomain.com/nginx.hsts.conf*;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://127.0.0.1:4567;
- proxy_redirect off;
- #Socket.IO Support
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- location /error/ {
- alias /home/master/web/subdomain.mydomain.com/document_errors/;
- }
- location ~* "/\.(htaccess|htpasswd)$" {
- deny all;
- return 404;
- }
- location /vstats/ {
- alias /home/master/web/subdomain.mydomain.com/stats/;
- include /home/master/web/subdomain.mydomain.com/stats/auth.conf*;
- }
- include /etc/nginx/conf.d/phpmyadmin.inc*;
- include /etc/nginx/conf.d/phppgadmin.inc*;
- include /home/master/conf/web/subdomain.mydomain.com/nginx.ssl.conf_*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement