Skip to content

Instantly share code, notes, and snippets.

@ssmulders
Created June 22, 2018 10:39
Show Gist options
  • Save ssmulders/67d752ab0e42a6c9952418649091bc76 to your computer and use it in GitHub Desktop.
Save ssmulders/67d752ab0e42a6c9952418649091bc76 to your computer and use it in GitHub Desktop.
server {
listen 443;
server_name DOMAIN;
root /Users/stan/Dropbox/_LocalServer/DOMAIN/public_html/public;
access_log /Users/stan/Dropbox/_LocalServer/DOMAIN/logs/access.log;
error_log /Users/stan/Dropbox/_LocalServer/DOMAIN/logs/error.log;
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;
try_files $uri $uri/ /index.php$is_args$args;
}
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