Last active
March 23, 2020 09:20
-
-
Save letulip/6a1f9e98ffdd462c5e6a83a88c0413ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name igor.wwpass.net; | |
location /.well-known { | |
root /opt/letsencrypt/; | |
} | |
location / { | |
rewrite ^(.*)$ https://igor.wwpass.net$1; | |
} | |
} | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name igor.wwpass.net; | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/igor.wwpass.net/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/igor.wwpass.net/privkey.pem; | |
root /var/www/passhub; | |
index index.php index.html index.htm; | |
location ~/(config|helpers|src) { | |
deny all; | |
return 404; | |
} | |
location ~ \.php$ { | |
include /etc/nginx/snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/run/php/php7.2-fpm.sock; | |
} | |
location /phb { | |
alias /var/www/test; | |
} | |
location /ph-ch { | |
alias /var/www/ph-ch; | |
} | |
location /html { | |
alias /var/www/html/passhub; | |
try_files $uri $uri/; | |
location ~ \.php$ { | |
include /etc/nginx/snippets/fastcgi-php.conf; | |
fastcgi_param SCRIPT_FILENAME $request_filename; | |
fastcgi_pass unix:/run/php/php7.2-fpm.sock; | |
} | |
} | |
location /rodeo { | |
#alias /var/www/rodeoStar; | |
root /var/www/rodeoStar/static; | |
try_files /main.html $uri @webapp; | |
} | |
location @webapp { | |
rewrite /rodeo/(.*) /$1 break; | |
proxy_pass http://127.0.0.1:9008; | |
proxy_pass_header Server; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Forwarded-Host $server_name; | |
proxy_set_header X-Scheme $scheme; | |
proxy_redirect off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment