forked from linux/WebHosting
Merge pull request 'sinqstatus-test.psi.ch' (#3) from sinqstatus into main
Reviewed-on: linux/WebHosting#3 Reviewed-by: ebner <simon.ebner@psi.ch>
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
# INC0150202 Kohlbrecher Joachim & Wall Edward Owen
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name sinqstatus-test.psi.ch;
|
||||||
|
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name sinqstatus-test.psi.ch;
|
||||||
|
|
||||||
|
root /opt/webcontent/sinqstatus-test;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
ssl_certificate /etc/ssl/certs/sinqstatus-test.psi.ch.crt;
|
||||||
|
ssl_certificate_key /etc/ssl/private/sinqstatus-test.psi.ch.key;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/sinqstatus-test.access.log;
|
||||||
|
error_log /var/log/nginx/sinqstatus-test.error.log;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_localtime on;
|
||||||
|
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user