27 lines
570 B
Plaintext
27 lines
570 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name optimecapsule.com www.optimecapsule.com forums.optimecapsule.com forum.optimecapsule.com;
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
# SSL configuration
|
||
|
#
|
||
|
listen 443 ssl;
|
||
|
listen [::]:443 ssl;
|
||
|
|
||
|
server_name optimecapsule.com www.optimecapsule.com;
|
||
|
|
||
|
access_log /var/log/nginx/optimecapsule.com/access.log;
|
||
|
error_log /var/log/nginx/optimecapsule.com/error.log;
|
||
|
|
||
|
root /var/www/html/optimecapsule;
|
||
|
index index.html;
|
||
|
autoindex on;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
}
|