From 01585f24a1a5af6f79be94b01830387775eabf68 Mon Sep 17 00:00:00 2001 From: ThomasKramps Date: Sat, 16 Mar 2013 16:10:11 +0100 Subject: [PATCH] Update installation_others.rst root path is normally /var/www. In default environment $server_name/htdocs throws a 404. inlude fastcgi.conf throws 'open() "/etc/nginx/fastcgi.conf" failed (2: No such file or directory)', assuming fastcgi_params would be correct. access_log main throws an 'unknown log format "main"', here I don't know how to fix it, so I commented it out for me. Please look into it! First github-experience for me. If I could do something better please criticize. --- admin_manual/installation/installation_others.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/admin_manual/installation/installation_others.rst b/admin_manual/installation/installation_others.rst index 632bd6ead..fff9d5f41 100644 --- a/admin_manual/installation/installation_others.rst +++ b/admin_manual/installation/installation_others.rst @@ -33,7 +33,7 @@ Nginx Configuration error_log /var/log/nginx/cloud.example.com.error_log info; # Path to the root of your installation - root /var/www/$server_name/htdocs; + root /var/www; client_max_body_size 10G; # set max upload size fastcgi_buffers 64 4K; @@ -66,11 +66,10 @@ Nginx Configuration try_files $script_name = 404; #Or try_files $1 = 404; if you use ^(.+?\.php)(/.*)?$ - include fastcgi.conf; - fastcgi_param PATH_INFO $path_info; - #Or fastcgi_param PATH_INFO $2; if you use ^(.+?\.php)(/.*)?$ + include fastcgi_params; + fastcgi_param PATH_INFO $path_info; # Or 'fastcgi_param PATH_INFO $2;' if you use ^(.+?\.php)(/.*)?$ fastcgi_param HTTPS on; - fastcgi_pass 127.0.0.1:9000; + fastcgi_pass 127.0.0.1:9000; # Or use unix-socket with 'fastcgi_pass unix:/var/run/php5-fpm.sock;' } # Optional: set long EXPIRES header on static assets