Created
July 13, 2015 05:05
-
-
Save rodrigoSyscop/798d1b939b7f3f4dfafe to your computer and use it in GitHub Desktop.
Default SSL nginx site configuration file
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
# /usr/local/etc/nginx/sites-available/default-ssl | |
server { | |
listen 443; | |
server_name localhost; | |
root /usr/local/var/www/; | |
access_log /usr/local/etc/nginx/logs/default-ssl.access.log main; | |
ssl on; | |
ssl_certificate ssl/localhost.crt; | |
ssl_certificate_key ssl/localhost.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv2 SSLv3 TLSv1; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} | |
location = /info { | |
allow 127.0.0.1; | |
deny all; | |
rewrite (.*) /.info.php; | |
} | |
error_page 404 /404.html; | |
error_page 403 /403.html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment