Welcome! Log In Create A New Profile

Advanced

Re: Config help needed

July 23, 2010 04:32AM
Hi All,

Found what was happening but I don't know how to fix it.

if I remove the clause starting "location ~ \.php$ { " then phpmyadmin
works.

How can I stop it firing when the URL does NOT contain "phpmyadmin" ???

This is the full config.

On 22/07/2010 20:10, Ian Hobson wrote:
> # default server - if no other domain given
> # - also handle phpmyadmin
> server {
> listen 80 default;
> server_name default.anake.hcs localhost;
> index index.php index.htm index.html;
> root /var/www/nginx-default/;
> location /doc {
> root /usr/share;
> autoindex on;
> allow 127.0.0.1;
> deny all;
> }
> location /images {
> root /usr/share;
> autoindex on;
> }
> #
> # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
> #
> location ~ \.php$ {
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
> include /etc/nginx/fastcgi.conf;
> fastcgi_pass 127.0.0.1:9000;
> }
> #
> # pass phpmyadmin/??? to /usr/share/phpmyadmin/???
> #
> location ~ ^/phpmyadmin/.*\.php$ {
> root /usr/share;
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
> include /etc/nginx/fastcgi.conf;
> fastcgi_pass 127.0.0.1:9000;
> }
> # handle missing /
> location = /phpmyadmin {
> rewrite ^ /phpmyadmin/ redirect;
> }
> location /phpmyadmin/ {
> root /usr/share;
> index index.php;
> }
> }
>
> ian@anake:/etc/nginx/sites-enabled$




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

Config help needed

hobson42 July 22, 2010 01:18PM

Re: Config help needed

edogawaconan July 22, 2010 01:44PM

Re: Config help needed

hobson42 July 22, 2010 03:16PM

Re: Config help needed

hobson42 July 23, 2010 04:32AM

Re: Config help needed

edogawaconan July 23, 2010 05:12AM

Re: Config help needed

hobson42 July 23, 2010 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
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