Thanks!<div><br></div><div>You should add fastcgi_index index.php. <br><br><div class="gmail_quote">On Tue, Oct 11, 2011 at 11:21 PM, suttles <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have the variable set, or at least I think I do. Here is my config for<br>
the vhost.<br>
<br>
server {<br>
        client_max_body_size 20M;<br>
        listen 1192;<br>
        # .<a href="http://domain.com" target="_blank">domain.com</a> will match both <a href="http://domain.com" target="_blank">domain.com</a> and<br>
<a href="http://anything.domain.com" target="_blank">anything.domain.com</a><br>
        server_name <a href="http://rentavault.net" target="_blank">rentavault.net</a>;<br>
<br>
        # It is best to place the root of the server block at the server<br>
level, and not the location level<br>
        # any location block path will be relative to this root.<br>
        root /home/www/rentavault_net;<br>
<br>
        # It's always good to set logs, note however you cannot turn off<br>
the error log<br>
        # setting error_log off; will simply create a file called<br>
'off'.<br>
        access_log /home/www/rentavault_net/logs/access_log.log main;<br>
        error_log /home/www/rentavault_net/logs/error_log.log info;<br>
<br>
        # This can also go in the http { } level<br>
        index index.php index.html;<br>
<br>
        location / {<br>
                # if you're just using wordpress and don't want extra<br>
rewrites<br>
                # then replace the word @rewrites with /index.php<br>
                try_files $uri $uri/ @rewrites;<br>
        }<br>
        location ~ ^/cgi-bin/(awredir|awstats)\.pl {<br>
                gzip off;<br>
                fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
                fastcgi_param SCRIPT_FILENAME<br>
$document_root/cgi-bin/cgi-bin.php;<br>
                fastcgi_param X_SCRIPT_FILENAME<br>
                /home/www/rentavault_net/$fastcgi_script_name;<br>
                fastcgi_param X_SCRIPT_NAME $fastcgi_script_name;<br>
                include fastcgi_params;<br>
        }<br>
<br>
This config will not let me access the sub directory without index.php<br>
in the path of the browser. Very frustrating.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,215921,216519#msg-216519" target="_blank">http://forum.nginx.org/read.php?2,215921,216519#msg-216519</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>douban:<a href="http://www.douban.com/people/mustang/" target="_blank">www.douban.com/people/mustang/</a><br><br>blog: <a href="http://www.pagefault.info" target="_blank">www.pagefault.info</a><br>

<br>twitter: <a href="http://www.twitter.com/minibobo" target="_blank">www.twitter.com/minibobo</a><br><br>weibo:  <a href="http://www.weibo.com/diaoliang" target="_blank">www.weibo.com/diaoliang</a><br><br>
</div>