forked from linux/WebHosting
Merge pull request 'megiwiki run on apache php infra' (#31) from megwiki into main
Reviewed-on: linux/WebHosting#31
This commit is contained in:
14
apache/conf/megwiki-test.conf
Normal file
14
apache/conf/megwiki-test.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName megwiki-test.psi.ch
|
||||
DocumentRoot /var/www/megwiki
|
||||
|
||||
<Directory /var/www/megwiki>
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog /proc/self/fd/2
|
||||
CustomLog /proc/self/fd/1 combined
|
||||
</VirtualHost>
|
||||
|
||||
21
conf.d/megwiki-test.psi.ch
Normal file
21
conf.d/megwiki-test.psi.ch
Normal file
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name megwiki-test.psi.ch;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name megwiki-test.psi.ch;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/megwiki-test.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/megwiki-test.psi.ch.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://apache_app:80;
|
||||
proxy_set_header Host $host;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,7 @@ services:
|
||||
- /opt/webcontent/gfa-status:/var/www/gfa-status:rw
|
||||
- /opt/webcontent/fluid-eos:/var/www/fluid-eos:rw
|
||||
- /opt/webcontent/sls2:/var/www/sls2:rw
|
||||
- /opt/webcontent/megwiki:/var/www/megwiki:rw
|
||||
- /mount/srem/webhosting:/var/www/srem:rw
|
||||
- ./apache/conf:/etc/apache2/sites-enabled:ro
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user