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

gigabyte nginx-forum at
Fri Jan 6 14:01:56 UTC 2012

the Root directory is /services/www/site/

When I login into the index.php which is located in
nginx redirects me to index.php which is located in the root directory -

When I manually enter it opens the
right file but all relative links on it (css,js, ,...etc) are being
loaded from root directory (/services/www/site) and thay should be
loaded from subdirectory (/services/www/site/administrator) and that is
why I'm getting many 404 responses from server.

Edho Arief Wrote:
> On Fri, Jan 6, 2012 at 8:46 PM, gigabyte
> <nginx-forum at> wrote:
> > No, this did not work either.
> > nginx keeps looking for for relative files in a
> <root> directory, but
> > has to do it in <root>/administrator directory
> > Maybe some other suggestions ?
> What do you mean? Are the files located in
> /services/www/site/administrator/administrator/?
> -- 
> O< ascii ribbon campaign - stop html mail -
> _______________________________________________
> nginx mailing list
> nginx at

Posted at Nginx Forum:,215921,220885#msg-220885

More information about the nginx mailing list