Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
listen [::]:80;
listen *:80;
server_name blog.chrismeller.com;
root /home/chris/public_html/blog.chrismeller.com/public;
access_log /home/chris/public_html/blog.chrismeller.com/logs/access.log;
error_log /home/chris/public_html/blog.chrismeller.com/logs/error.log;
location ~ /\.git {
deny all;
}
location /habari/ {
# force ssl for login and admin pages
rewrite ^/habari/(admin|auth)(.*) https://$host$request_uri?;
try_files $uri $uri/ /habari/index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_pass php;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.