31 lines
615 B
Plaintext
31 lines
615 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name hydrocitynet.org www.hydrocitynet.org;
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
# SSL configuration
|
||
|
#
|
||
|
listen 443 ssl;
|
||
|
listen [::]:443 ssl;
|
||
|
|
||
|
server_name hydrocitynet.org www.hydrocitynet.org;
|
||
|
|
||
|
access_log /var/log/nginx/hydrocitynet.org/access.log;
|
||
|
error_log /var/log/nginx/hydrocitynet.org/error.log;
|
||
|
|
||
|
location /.well-known/ {
|
||
|
root /var/www/html/;
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
root /var/www/html/hydrocitynet;
|
||
|
index index.html;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
}
|