forked from linux/WebHosting
22
apache/conf/srem.conf
Normal file
22
apache/conf/srem.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName srem-test.psi.ch
|
||||
DocumentRoot /var/www/srem
|
||||
|
||||
# Allow CGI everywhere if needed
|
||||
Options +ExecCGI
|
||||
AddHandler cgi-script .pl .cgi
|
||||
|
||||
<Directory "/var/www/srem">
|
||||
Options +ExecCGI
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# Explicit CGI directories
|
||||
ScriptAlias /cgibin/ /var/www/srem/cgibin/
|
||||
<Directory "/var/www/srem/cgibin">
|
||||
Options +ExecCGI
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
30
conf.d/srem-test.conf
Normal file
30
conf.d/srem-test.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name srem-test.psi.ch;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name srem-test.psi.ch;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/srem-test.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/srem-test.psi.ch.key;
|
||||
|
||||
access_log /var/log/nginx/srem-test.access.log;
|
||||
error_log /var/log/nginx/srem-test.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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,11 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- /opt/webcontent/rfmwtools:/var/www/rfmwtools:ro
|
||||
- /opt/webcontent/srem/new_srem_webpage:/var/www/srem:ro
|
||||
- /opt/webcontent/gfa-status:/var/www/gfa-status:rw
|
||||
- /opt/webcontent/fluid-eos:/var/www/fluid-eos:rw
|
||||
- ./apache/conf/rfmwtools.conf:/etc/apache2/sites-enabled/rfmwtools.conf:ro
|
||||
- ./apache/conf/srem.conf:/etc/apache2/sites-enabled/srem.conf:ro
|
||||
- ./apache/conf/gfa-status.conf:/etc/apache2/sites-enabled/gfa-status.conf:ro
|
||||
- ./apache/conf/fluid-eos.conf:/etc/apache2/sites-enabled/fluid-eos.conf:ro
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user