forked from linux/WebHosting_DMZ
add srem-test to DMZ as srem.psi.ch
Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName srem.psi.ch
|
||||
DocumentRoot /var/www/srem
|
||||
|
||||
Options +ExecCGI +Includes
|
||||
AddHandler cgi-script .pl .cgi
|
||||
AddHandler server-parsed .shtml
|
||||
AddOutputFilter INCLUDES .shtml
|
||||
|
||||
<Directory "/var/www/srem">
|
||||
Options +Includes
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory "/var/www/srem/static">
|
||||
Options +Includes
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# Explicit CGI directory
|
||||
ScriptAlias /cgibin/ /var/www/srem/cgibin/
|
||||
<Directory "/var/www/srem/cgibin">
|
||||
Options +ExecCGI -Includes
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name srem.psi.ch;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name srem.psi.ch;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/lx-docker-dmz-01.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/lx-docker-dmz-01.psi.ch.key;
|
||||
|
||||
access_log /var/log/nginx/srem.access.log;
|
||||
error_log /var/log/nginx/srem.error.log;
|
||||
|
||||
# Proxy EVERYTHING to the Apache container
|
||||
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;
|
||||
|
||||
# Important for CGI apps
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ services:
|
||||
volumes:
|
||||
- /opt/webcontent/DMZ/rfmwtools:/var/www/rfmwtools:ro
|
||||
- /opt/webcontent/DMZ/fluid-eos:/var/www/fluid-eos:rw
|
||||
- ./apache/conf/rfmwtools.conf:/etc/apache2/sites-enabled/rfmwtools.conf:ro
|
||||
- ./apache/conf/fluid-eos.conf:/etc/apache2/sites-enabled/fluid-eos.conf:ro
|
||||
- /mount/srem/webhosting:/var/www/srem:rw
|
||||
- ./apache/conf:/etc/apache2/sites-enabled:ro
|
||||
networks:
|
||||
- backend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user