Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- autoindex_localtime on;
- allow all;
- include ./conf/denyips.conf;
- server {
- listen 80;
- server_name localhost;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- ssl_certificate ./ssl/fullchain.cer;
- ssl_certificate_key ./ssl/cert.key;
- server_name ombii.mywebsite.com;
- location / {
- proxy_pass http://localhost:3180;
- proxy_set_header Accept-Encoding "";
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $http_connection;
- }
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- ssl_certificate ./ssl/fullchain.cer;
- ssl_certificate_key ./ssl/cert.key;
- server_name notes.mywebsite.com;
- location /notes {
- proxy_pass http://localhost:88;
- proxy_set_header Accept-Encoding "";
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $http_connection;
- }
- }
- #Root Domain
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- ssl_certificate ./ssl/fullchain.cer;
- ssl_certificate_key ./ssl/cert.key;
- server_name_in_redirect off;
- log_not_found off;
- server_name www.mywebsite.com mywebsite.com;
- location / {
- root /inetpub/wwwroot;
- index index.html index.htm;
- }
- location ~ \.php$ {
- root /inetpub/wwwroot;
- fastcgi_pass 127.0.0.1:1123;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment