atom feed20 messages in ru.sysoev.nginxRe: why my php file in subdirectory d...
FromSent OnAttachments
baalchinaSep 27, 2011 7:55 pm 
Simon LiuSep 27, 2011 8:02 pm 
suttlesOct 11, 2011 7:52 am 
Simon LiuOct 11, 2011 8:16 am 
suttlesOct 11, 2011 8:21 am 
Simon LiuOct 11, 2011 8:40 pm 
suttlesOct 12, 2011 11:19 am 
suttlesOct 17, 2011 9:19 am 
gigabyteJan 5, 2012 11:36 pm 
Ian HobsonJan 6, 2012 2:30 am 
Edho AriefJan 6, 2012 2:36 am 
gigabyteJan 6, 2012 3:38 am 
Edho AriefJan 6, 2012 3:40 am 
gigabyteJan 6, 2012 4:25 am 
Edho AriefJan 6, 2012 4:47 am 
gigabyteJan 6, 2012 5:45 am 
Edho AriefJan 6, 2012 5:48 am 
gigabyteJan 6, 2012 6:01 am 
Edho AriefJan 6, 2012 6:06 am 
gigabyteJan 6, 2012 6:23 am 
Subject:Re: why my php file in subdirectory doesn't work?
From:suttles (ngin@nginx.us)
Date:Oct 11, 2011 8:21:00 am
List:ru.sysoev.nginx

I have the variable set, or at least I think I do. Here is my config for the vhost.

server { client_max_body_size 20M; listen 1192; # .domain.com will match both domain.com and anything.domain.com server_name rentavault.net;

# It is best to place the root of the server block at the server level, and not the location level # any location block path will be relative to this root. root /home/www/rentavault_net;

# It's always good to set logs, note however you cannot turn off the error log # setting error_log off; will simply create a file called 'off'. access_log /home/www/rentavault_net/logs/access_log.log main; error_log /home/www/rentavault_net/logs/error_log.log info;

# This can also go in the http { } level index index.php index.html;

location / { # if you're just using wordpress and don't want extra rewrites # then replace the word @rewrites with /index.php try_files $uri $uri/ @rewrites; } location ~ ^/cgi-bin/(awredir|awstats)\.pl { gzip off; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root/cgi-bin/cgi-bin.php; fastcgi_param X_SCRIPT_FILENAME /home/www/rentavault_net/$fastcgi_script_name; fastcgi_param X_SCRIPT_NAME $fastcgi_script_name; include fastcgi_params; }

This config will not let me access the sub directory without index.php in the path of the browser. Very frustrating.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,215921,216519#msg-216519