Created
December 25, 2014 02:58
-
-
Save alnutile/92b668875db8e9087bbb to your computer and use it in GitHub Desktop.
server conf for ssl and one domain
This file contains hidden or 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
erver { | |
listen 80; | |
server_name kidcodeshare.io www.kidcodeshare.io; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443 ssl; | |
server_name kidcodeshare.io www.kidcodeshare.io; | |
root /home/forge/default/public; | |
# FORGE SSL (DO NOT REMOVE!) | |
ssl_certificate /etc/nginx/ssl/default/4129/server.crt; | |
ssl_certificate_key /etc/nginx/ssl/default/4129/server.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location = /robots.txt { access_log off; log_not_found off; } | |
access_log off; | |
error_log /var/log/nginx/default-error.log error; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment