From 490903d223ee6940afb0c82fe0901250ef034ddd Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 2 Jan 2015 11:17:11 +1100 Subject: [PATCH] Add rewrite rule for location /; Correct indenting --- INSTALL.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 34786e8d..6cb94b9c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -140,8 +140,8 @@ Restart Apache and you're done! ``` # Upstream to abstract backend connection(s) for php upstream php { - server unix:/tmp/php-cgi.socket; - server 127.0.0.1:9000; + server unix:/tmp/php-cgi.socket; + server 127.0.0.1:9000; } server { @@ -153,8 +153,8 @@ server { # HTTPS server server { - listen 443; - server_name cachet.mycompany.com; + listen 443; + server_name cachet.mycompany.com; root /var/vhost/cachet.mycompany.com/public; index index.php; @@ -172,6 +172,7 @@ server { location / { add_header Strict-Transport-Security max-age=15768000; + try_files $uri /index.php$is_args$args; } location ~ \.php$ { @@ -181,7 +182,7 @@ server { fastcgi_index index.php; fastcgi_keep_conn on; add_header Strict-Transport-Security max-age=15768000; - } + } } ``` Start php5-fpm and nginx and you're done!