Welcome! Log In Create A New Profile

Advanced

Re: Configuring phpmyadmin

May 25, 2011 05:46AM
On Wed, May 25, 2011 at 05:41:14AM -0400, Trazzt wrote:
> Okay thx for the tip I'm new to this ;)
> Here it is:
>
> phpmyadmin:
> _____________________________________
> server{
> listen 80;
> server_name phpmyadmin;
> access_log /var/log/phpmyadmin.access_log;
> error_log /var/log/phpmyadmin.error_log;
>
> location / {
> root /usr/share/phpmyadmin;
> index index.php;
> }
>
> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /usr/share/phpmyadmin$fastcgi_script_name;
> include fastcgi_params;
> }
> }
> _____________________________________
>
> This is my fastcgi_script, located at "/etc/init.d/php-fastcgi"
> http://pastie.org/1970419
>
>
> I also have one other site enabled, I don't know if thats relevant but
> you can find it here.
> I want this site to be located at 'localhost'
> http://pastie.org/1970411

You probably need

location / {
return 404;
}

location /phpmyadmin {
root /usr/share;
index index.php;
}

location ~ ^/phpmyadmin/\.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /usr/share$fastcgi_script_name;
include fastcgi_params;
}


--
Igor Sysoev

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

Configuring phpmyadmin

Trazzt May 24, 2011 03:25PM

Re: Configuring phpmyadmin

fbhosted May 24, 2011 07:16PM

Re: Configuring phpmyadmin

Trazzt May 25, 2011 05:41AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 05:46AM

Re: Configuring phpmyadmin

Trazzt May 25, 2011 06:13AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 06:26AM

Re: Configuring phpmyadmin

Trazzt May 25, 2011 07:58AM

Re: Configuring phpmyadmin

Dick Middleton May 25, 2011 08:06AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 08:50AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 08:52AM

Re: Configuring phpmyadmin

Trazzt May 25, 2011 09:07AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 09:18AM

Re: Configuring phpmyadmin

Trazzt May 25, 2011 09:34AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 09:38AM

Re: Configuring phpmyadmin

Dick Middleton May 25, 2011 09:58AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 10:02AM

Re: Configuring phpmyadmin

Trazzt May 25, 2011 10:38AM

Re: Configuring phpmyadmin

Igor Sysoev May 25, 2011 10:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready