Configuring phpmyadmin
Igor Sysoev
igor at sysoev.ru
Wed May 25 13:45:48 MSD 2011
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
More information about the nginx
mailing list