Francis Daly
August 01, 2012 03:10PM
On Wed, Aug 01, 2012 at 07:37:10AM -0400, yashgt wrote:

Hi there,

> My directory structure is:
> /usr/share/nginx/www
> /magento/current <- This is my application
> /phpmyadmin
>
> I changed the root of the server to
> /usr/share/nginx/www/magento/current.

You changed the server{}-level "root" directive, so that any location{}
that does not include its own "root" directive will use that one.

> I would like to configured phpmyadmin such that it is accessible as
> http://myserver/phpmyadmin/index.php.
>
> Please note that the root of my application is different than the root
> of phpmyadmin and both are to be served from the same server.

A http request comes in, and is processed by exactly one location. An
internal rewrite may cause it to then be processed by one other
location. This can happen again.

> If I create a location with ^~ /phpmyadmin/ can I set a root in it? Will
> I have to do something to pass the index.php to FCGI. Will this have to
> be done in the location directive?

Yes to each. You'll probably want to nest locations, like

location ^~ /phpmyadmin/ {
#root and other directives
location ~ php {
#php-relevant directives
}
}

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Single server with multiple hierarchies

yashgt August 01, 2012 07:37AM

Re: Single server with multiple hierarchies

Francis Daly August 01, 2012 03:10PM

Re: Single server with multiple hierarchies

martinlove August 15, 2012 11:35AM

Re: Single server with multiple hierarchies

Edho Arief August 15, 2012 11:52AM

Re: Single server with multiple hierarchies

martinlove August 15, 2012 04:37PM

Re: Single server with multiple hierarchies

yashgt August 06, 2012 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready