Re: why my php file in subdirectory doesn't work?

Simon Liu simohayha.bobo at gmail.com
Tue Oct 11 15:16:31 UTC 2011


Thanks!

You should set index directive. example: "index index.html index.php"

On Tue, Oct 11, 2011 at 10:53 PM, suttles <nginx-forum at nginx.us> wrote:

> I have similar problem. I can get the index.php to display in the
> document root, but when I type www.mydomain.com/administrator it will
> not pull the index.php, but if I type
> www.mydomain.com/administrator/index.php, it will bring the page up. So
> is this a configuration file issue or a rewrite issue. I need to resolve
> this due to the fact I have some joomla installs that have a root joomla
> install and then a subdirectory of joomla installed and I must be able
> to get the server to respond to the sub-directory index.php files.
>
> I am new to NGINX and let me say it is awesome, but I still have a lot
> to learn.
>
> Thx
> Suttles
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,215921,216516#msg-216516
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
douban:www.douban.com/people/mustang/

blog: www.pagefault.info

twitter: www.twitter.com/minibobo

weibo:  www.weibo.com/diaoliang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111011/53fddb65/attachment.html>


More information about the nginx mailing list