etc/nginx/sites-available/hydrocitynet.conf

31 lines
615 B
Plaintext
Raw Normal View History

2018-11-22 16:19:07 -06:00
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;
}
}