nano
January 09, 2014 06:46AM
On 9/01/2014 9:55 PM, Francis Daly wrote:
> On Thu, Jan 09, 2014 at 09:23:56PM +1100, nano wrote:
>
> Hi there,
>
> One request is handled in one location.
>
> For this request, the one location that you want to be used is not the
> one that nginx actually uses.
>
>> location / {
>> location ~ \.php$ {
>> location /phpmyadmin/ {
>> location ~ ^/phpmyadmin/(.*\.php)$ {
>
>
> http://nginx.org/r/location
>
> A request for /phpmyadmin/index.php will be handled in the second location
> above, not the fourth.
>
> Re-arrange the config file.
>
> (I'd suggest using "location ^~ /phpmyadmin/", and inside that using
> "location ~ \.php$"; but just re-ordering the regex blocks that you have
> should cause the location that you want to be chosen.)
>
>

Hi. Thank you for your response. I had previously read the documentation
you reference but I am afraid I am none the wiser, likely due to my own
failure to comprehend. Similarly, I am finding it difficult to implement
your suggestion. Would you please provide an example of this arrangement
I should have?

I attempted multiple variations of what I believed your instructions
suggested (nesting \.php$ location inside the /phpmyadmin location);
such as:

location ^~ /phpmyadmin {
alias /usr/local/www/phpMyAdmin/;
fastcgi_param DOCUEMNT_ROOT /usr/local/www/phpMyAdmin;
fastcgi_param PATH_INFO $fastcgi_script_name;

location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}
}

I implemented many varieties of this location nesting. All resulted in
the same inability to access the URI: sitename.com/phpmyadmin. But also
made the WordPress site (servername.com) unavailable. Instead, it
presented a dialog offering to download the 'application/octet-stream'.

Please provide the configuration you suggest. Thank you.

--
syn.bsdbox.co

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

SSL ciphers, disable or not to disable RC4?

Anonymous User January 09, 2014 04:30AM

Re: SSL ciphers, disable or not to disable RC4?

nano January 09, 2014 04:44AM

Re: SSL ciphers, disable or not to disable RC4?

Jeffrey Walton January 09, 2014 04:54AM

RE: SSL ciphers, disable or not to disable RC4?

Lukas Tribus January 09, 2014 04:54AM

Re: SSL ciphers, disable or not to disable RC4?

Jeffrey Walton January 09, 2014 05:06AM

PHP below server root not served

nano January 09, 2014 05:26AM

Re: PHP below server root not served

Richard Stanway January 09, 2014 05:30AM

Re: PHP below server root not served

nano January 09, 2014 05:34AM

Re: PHP below server root not served

Francis Daly January 09, 2014 05:56AM

Re: PHP below server root not served

nano January 09, 2014 06:46AM

Re: PHP below server root not served

nano January 09, 2014 07:42AM

Re: PHP below server root not served

B.R. January 09, 2014 08:00AM

Re: PHP below server root not served

nano January 09, 2014 08:52AM

Re: PHP below server root not served

Francis Daly January 09, 2014 04:00PM

Re: PHP below server root not served

nano January 09, 2014 10:08PM

Re: PHP below server root not served

Francis Daly January 10, 2014 04:38AM

Re: PHP below server root not served

nano January 10, 2014 06:40AM

Re: PHP below server root not served

Francis Daly January 10, 2014 10:36AM

Re: PHP below server root not served

nano January 12, 2014 05:28AM

Re: PHP below server root not served

Francis Daly January 14, 2014 05:14PM

Re: PHP below server root not served

Valentin V. Bartenev January 15, 2014 02:20PM

Re: PHP below server root not served

nano January 10, 2014 04:38AM

Re: PHP below server root not served

nano January 09, 2014 09:44AM

Re: PHP below server root not served

Jim Ohlstein January 09, 2014 12:14PM

Re: PHP below server root not served

nano January 09, 2014 12:30PM

Re: SSL ciphers, disable or not to disable RC4?

Axel January 12, 2014 12:44PM

Re: SSL ciphers, disable or not to disable RC4?

Darren Pilgrim January 12, 2014 02:10PM

Re: SSL ciphers, disable or not to disable RC4?

Axel January 13, 2014 04:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready