fluid eos

Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
2025-11-24 11:00:11 +01:00
parent 68d2cea3d5
commit cc30a18c40
4 changed files with 60 additions and 37 deletions
+28
View File
@@ -0,0 +1,28 @@
<VirtualHost *:80>
ServerName fluid-eos-test.psi.ch
DocumentRoot /var/www/fluid-eos
# Allow CGI everywhere if needed
Options +ExecCGI
AddHandler cgi-script .pl .cgi .x
<Directory "/var/www/fluid-eos">
Options +ExecCGI
AllowOverride None
Require all granted
</Directory>
# Explicit CGI directories
ScriptAlias /cgi-bin/ /var/www/fluid-eos/cgi-bin/
<Directory "/var/www/fluid-eos/cgi-bin">
Options +ExecCGI
Require all granted
</Directory>
ScriptAlias /cgibin/ /var/www/fluid-eos/cgibin/
<Directory "/var/www/fluid-eos/cgibin">
Options +ExecCGI
Require all granted
</Directory>
</VirtualHost>
+30
View File
@@ -0,0 +1,30 @@
server {
listen 80;
server_name fluid-eos.web.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name fluid-eos.web.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/fluid-eos.access.log;
error_log /var/log/nginx/fluid-eos.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;
}
}
-37
View File
@@ -1,37 +0,0 @@
# Churakov Sergey - ISPD migration
server {
listen 80;
server_name fluid-eos.web.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name fluid-eos.web.psi.ch;
root /opt/webcontent/DMZ/fluid-eos;
index index.html;
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/fluid-eos-test.access.log;
error_log /var/log/nginx/fluid-eos-test.error.log;
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
try_files $uri $uri/ =404;
}
location ^~ /EOS/ {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
try_files $uri $uri/ =404;
}
}
+2
View File
@@ -28,7 +28,9 @@ services:
restart: always
volumes:
- /opt/webcontent/DMZ/rfmwtools:/var/www/rfmwtools:ro
- /opt/webcontent/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
networks:
- backend