aboutsummaryrefslogtreecommitdiffstats
path: root/doc/install
diff options
context:
space:
mode:
authorOlaf Conradi <olaf@conradi.org>2013-11-05 23:30:21 +0100
committerOlaf Conradi <olaf@conradi.org>2013-11-05 23:30:21 +0100
commit37e8be8d3bfcb5e7c1069231c8711b29ce3aab7c (patch)
treefb88da5949c92b89e27baed5a8ff0881eecf0962 /doc/install
parentf89e7b2bd549474439e684c052623af7e2e8d27d (diff)
downloadvolse-hubzilla-37e8be8d3bfcb5e7c1069231c8711b29ce3aab7c.tar.gz
volse-hubzilla-37e8be8d3bfcb5e7c1069231c8711b29ce3aab7c.tar.bz2
volse-hubzilla-37e8be8d3bfcb5e7c1069231c8711b29ce3aab7c.zip
Fix Nginx config for Nginx 1.4.x
Diffstat (limited to 'doc/install')
-rw-r--r--doc/install/sample-nginx.conf17
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/install/sample-nginx.conf b/doc/install/sample-nginx.conf
index 718524ee3..57a0e63b5 100644
--- a/doc/install/sample-nginx.conf
+++ b/doc/install/sample-nginx.conf
@@ -6,8 +6,9 @@
# /etc/nginx/sites-available
#
# Then customize to your needs. To enable the configuration
-# symlink it to /etc/nginx/sites-enabled and reload Nginx
-# using /etc/init.d/nginx reload
+# symlink it to /etc/nginx/sites-enabled and reload Nginx using
+#
+# service nginx reload
##
##
@@ -29,7 +30,9 @@
##
server {
+ listen 80;
server_name red.example.net;
+
index index.php;
root /var/www/red;
rewrite ^ https://red.example.net$request_uri? permanent;
@@ -45,22 +48,21 @@ server {
##
server {
- listen 80;
listen 443 ssl;
- ssl on;
server_name red.example.net;
+
+ ssl on;
ssl_certificate /etc/nginx/ssl/red.example.net.chain.pem;
ssl_certificate_key /etc/nginx/ssl/example.net.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
-
-
+
index index.php;
charset utf-8;
root /var/www/red;
- access_log /var/log/nginx/red.log main;
+ access_log /var/log/nginx/red.log;
#Uncomment the following line to include a standard configuration file
#include standard.conf
# allow uploads up to 20MB in size
@@ -94,6 +96,7 @@ server {
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
+ # or a unix socket
location ~* \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini