forked from linux/WebHosting
31 lines
677 B
Plaintext
31 lines
677 B
Plaintext
# Gaspar Marcos - ISPD Migration
|
|
server {
|
|
listen 80;
|
|
server_name rfmwtools-test.psi.ch;
|
|
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name rfmwtools-test.psi.ch;
|
|
|
|
root /opt/webcontent/rfmwtools;
|
|
index rfmwtools.html;
|
|
|
|
ssl_certificate /etc/nginx/certs/rfmwtools-test.psi.ch.crt;
|
|
ssl_certificate_key /etc/nginx/private/rfmwtools-test.psi.ch.key;
|
|
|
|
access_log /var/log/nginx/rfmwtools-test.access.log;
|
|
error_log /var/log/nginx/rfmwtools-test.error.log;
|
|
|
|
location / {
|
|
autoindex on;
|
|
autoindex_exact_size off;
|
|
autoindex_localtime on;
|
|
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|
|
|