1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

nginx - group proxypass to apache together

This commit is contained in:
Jerry Vonau 2019-10-20 06:38:59 -05:00
parent 2833bb1654
commit 4047894ab6
17 changed files with 50 additions and 55 deletions

View file

@ -0,0 +1,3 @@
location /elgg {
proxy_pass http://127.0.0.1:{{ apache_port }}/elgg;
}

View file

@ -0,0 +1,3 @@
location /lokole {
proxy_pass http://127.0.0.1:{{ apache_port }}/lokole;
}

View file

@ -0,0 +1,11 @@
location /mediawiki {
proxy_pass http://127.0.0.1:{{ apache_port }}/mediawiki;
}
location ~ /mediawiki/.*\.php$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:{{ apache_port }};
}

View file

@ -0,0 +1,11 @@
location /nextcloud {
proxy_pass http://127.0.0.1:{{ apache_port }}/nextcloud;
}
location ~ /nextcloud/.*\.php$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:{{ apache_port }};
}

View file

@ -0,0 +1,3 @@
location /nodered {
proxy_pass http://127.0.0.1:{{ apache_port }}/nodered;
}

View file

@ -0,0 +1,15 @@
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen {{ apache_port }}
#<IfModule ssl_module>
# Listen 443
#</IfModule>
#<IfModule mod_gnutls.c>
# Listen 443
#</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View file

@ -0,0 +1,11 @@
location /wordpress {
proxy_pass http://127.0.0.1:{{ apache_port }}/wordpress;
}
location ~ /wordpress/.*\.php$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:{{ apache_port }};
}