Last active
February 15, 2023 17:12
-
-
Save Kvieta1990/57887cf7d9e828dca382ce02ef1bb890 to your computer and use it in GitHub Desktop.
orc-iris nginx config
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
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80; | |
server_name _; | |
return 301 https://orc-iris.ornl.gov$request_uri; | |
} | |
server { | |
listen 443; | |
ssl on; | |
ssl_certificate /home/cloud/Dev/SSL/orc-iris.pem; | |
ssl_certificate_key /home/cloud/Dev/SSL/orc-iris.key; | |
root /var/www/mybb/www; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name _; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
location /hub/ { | |
proxy_pass https://127.0.0.1:8000; | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection $connection_upgrade; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The MyBB server was installed at
/var/www/mybb/www
following the tutorial at, youtube.com/watch?v=0Solyc0Jwgo&list=PLAYk0l7EXZVvTuEZMwa-f46xwa6XWlsvZ&index=122&t=1288s