forked from linux/WebHosting
38 lines
815 B
Plaintext
38 lines
815 B
Plaintext
# Churakov Sergey - ISPD migration
|
|
server {
|
|
listen 80;
|
|
server_name fluid-eos-test.psi.ch;
|
|
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name fluid-eos-test.psi.ch;
|
|
|
|
root /opt/webcontent/fluid-eos;
|
|
index index.html;
|
|
|
|
ssl_certificate /etc/nginx/certs/fluid-eos-test.psi.ch.crt;
|
|
ssl_certificate_key /etc/nginx/private/fluid-eos-test.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;
|
|
}
|
|
}
|
|
|