Created
April 3, 2020 20:59
-
-
Save santocyber/da250537a8709de5f2d3e0c433fdf991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Note: This file must be loaded before other virtual host config files, | |
# | |
# HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
# NO "ssl on" HERE!!! | |
ssl off; | |
return 301 https://$host$request_uri; | |
include /etc/nginx/templates/ssl.tmpl; | |
include /etc/nginx/templates/roundcube.tmpl; | |
} | |
server { | |
listen 443 ssl; | |
listen [::]:443; | |
ssl on; | |
server_name turismonomeiorural.com.br www.turismonomeiorural.com.br; | |
root /var/www/turismonomeiorural.com.br/; | |
index index.php index.html; | |
include /etc/nginx/templates/misc.tmpl; | |
include /etc/nginx/templates/iredadmin.tmpl; | |
# include /etc/nginx/templates/ssl.tmpl; | |
include /etc/nginx/templates/roundcube.tmpl; | |
include /etc/nginx/templates/sogo.tmpl; | |
include /etc/nginx/templates/netdata.tmpl; | |
include /etc/nginx/templates/php-catchall.tmpl; | |
include /etc/nginx/templates/stub_status.tmpl; | |
ssl_certificate /etc/letsencrypt/live/turismonomeiorural.com.br/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/turismonomeiorural.com.br/privkey.pem; # managed by Certbot | |
try_files $uri $uri/ =404; | |
} | |
server { | |
listen 443; | |
listen [::]:443; | |
server_name mirako.org shop.mirako.org market.mirako.org; | |
root /var/www/mirako.org/; | |
index index.php index.html; | |
include /etc/nginx/templates/misc.tmpl; | |
# include /etc/nginx/templates/iredadmin.tmpl; | |
# include /etc/nginx/templates/ssl.tmpl; | |
# include /etc/nginx/templates/roundcube.tmpl; | |
# include /etc/nginx/templates/sogo.tmpl; | |
# include /etc/nginx/templates/netdata.tmpl; | |
include /etc/nginx/templates/php-catchall.tmpl; | |
include /etc/nginx/templates/stub_status.tmpl; | |
ssl_certificate /etc/letsencrypt/live/turismonomeiorural.com.br/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/turismonomeiorural.com.br/privkey.pem; # managed by Certbot | |
try_files $uri $uri/ =404; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment