<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>I added this,I verify it, everything is correct, my site works fine but accessing http://mydomain.com/phpmyadmin still doesn't work, a 500 server errror appears.</P><P></P><P>location ~ /phpmyadmin/.*\.php$ {<BR>                 root /usr/share/;<BR>                 fastcgi_pass 127.0.0.1:9002;<BR>                fastcgi_index index.php;<BR>                include /usr/local/nginx/conf/fastcgi_params;<BR>                fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;<BR>                }<BR><BR>                location /phpmyadmin/ {<BR>                root /usr/share/;<BR>                index index.php;<BR>                }<BR><BR><BR></P><BR>--- On <B>Sun, 9/13/09, Edho P Arief <I>&lt;edhoprima@gmail.com&gt;</I></B> wrote:<BR><BLOCKQUOTE style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left:
 5px;"><BR>From: Edho P Arief &lt;edhoprima@gmail.com&gt;<BR>Subject: Re: How to configure phpmyadmin with nginx ?<BR>To: nginx@sysoev.ru<BR>Date: Sunday, September 13, 2009, 9:31 AM<BR><BR><DIV class="plainMail">On Sun, Sep 13, 2009 at 4:54 AM, SE7EN&lt;<A ymailto="mailto:k1_zeus@yahoo.com" href="/mc/compose?to=k1_zeus@yahoo.com">k1_zeus@yahoo.com</A>&gt; wrote:<BR>&gt; Hi, phpmyadmin is installed in /usr/share/phpmyadmin and i have the<BR>&gt; following vhost configuration file. How to configure phpmyadmin so i can<BR>&gt; use: <A href="http://mydomain.com/phpmyadmin" target="_blank">http://mydomain.com/phpmyadmin</A><BR>&gt;<BR>&gt; Thank you<BR>&gt;<BR>&gt; server {<BR>&gt;   listen 80;<BR>&gt;   server_name www.mydomain.com;<BR>&gt;<BR>&gt;   #redirect www to non-www<BR>&gt;   rewrite ^/(.*) <A href="http://mydomain.com/$1" target="_blank">http://mydomain.com/$1</A> permanent;<BR>&gt;<BR>&gt;<BR>&gt;   }<BR>&gt;<BR>&gt;<BR>&gt; server {<BR>&gt;
   listen 80;<BR>&gt;   server_name mydomain.com;<BR>&gt;   access_log /home/mydomain/log/access.log;<BR>&gt;   error_log /home/mydomain/log/error.log;<BR>&gt;<BR><BR>location ~ /phpmyadmin/.*\.php$ {<BR>  root /usr/share/;<BR>  ....php fastcgi settings...;<BR>}<BR><BR>location /phpmyadmin/ {<BR>  root /usr/share/;<BR>  index index.php;<BR>}<BR><BR>&gt;<BR>&gt;<BR>&gt;   location / {<BR>&gt;   root /home/mydomain/public_html/;<BR>&gt;   index index.php index.html;<BR>&gt;   expires 30d;<BR>&gt;<BR>&gt;   #stop image and files hotlinking<BR>&gt;   location ~* ^.+\.(gif|jpg|png|swf|flv|rar|zip|jpeg|css)$ {<BR>&gt;   valid_referers none blocked mydomain.com www.mydomain.com *.google.com<BR>&gt; *.yahoo.com;<BR>&gt;   if ($invalid_referer) {<BR>&gt;   return 444;<BR>&gt;   }<BR>&gt;   }<BR>&gt;<BR>&gt;   #joomla sef url's<BR>&gt;   if (!-e $request_filename) {<BR>&gt;   rewrite ^(.*)$ /index.php?q=$1 last;<BR>&gt;   break;<BR>&gt;  
 }<BR>&gt;   }<BR>&gt;<BR>&gt;   if ( $args ~ "mosConfig_[a-zA-Z_]{1,21}(=|\%3d)" ) {<BR>&gt;   set $args "";<BR>&gt;   rewrite ^.*$ <A href="http://$host/index.php" target="_blank">http://$host/index.php</A> last;<BR>&gt;   return 403;<BR>&gt;   }<BR>&gt;<BR>&gt;   if ( $args ~ "base64_encode.*\(.*\)" ) {<BR>&gt;   set $args "";<BR>&gt;   rewrite ^.*$ <A href="http://$host/index.php" target="_blank">http://$host/index.php</A> last;<BR>&gt;   return 403;<BR>&gt;   }<BR>&gt;<BR>&gt;   if ( $args ~ "(\&lt;|%3C).*script.*(\&gt;|%3E)" ) {<BR>&gt;   set $args "";<BR>&gt;   rewrite ^.*$ <A href="http://$host/index.php" target="_blank">http://$host/index.php</A> last;<BR>&gt;   return 403;<BR>&gt;   }<BR>&gt;<BR>&gt;   if ( $args ~ "GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ) {<BR>&gt;   set $args "";<BR>&gt;   rewrite ^.*$ <A href="http://$host/index.php" target="_blank">http://$host/index.php</A> last;<BR>&gt;   return 403;<BR>&gt;  
 }<BR>&gt;<BR>&gt;   if ( $args ~ "_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ) {<BR>&gt;   set $args "";<BR>&gt;   rewrite ^.*$ <A href="http://$host/index.php" target="_blank">http://$host/index.php</A> last;<BR>&gt;   return 403;<BR>&gt;   }<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;   # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<BR>&gt;   location ~ \.php$<BR>&gt;   {<BR>&gt;   fastcgi_pass 127.0.0.1:9000;<BR>&gt;   fastcgi_index index.php;<BR>&gt;   include /usr/local/nginx/conf/fastcgi_params;<BR>&gt;   fastcgi_param SCRIPT_FILENAME<BR>&gt; /home/mydomain/public_html/$fastcgi_script_name;<BR>&gt;   }<BR>&gt;<BR>&gt;<BR>&gt;   ## All other errors get the generic error page<BR>&gt;   error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415<BR>&gt; 416 417<BR>&gt;   500 501 502 503 504 505 /error_page.html;<BR>&gt;   location $document_root/error_page.html {<BR>&gt;   internal;<BR>&gt;<BR>&gt;   }<BR>&gt;<BR>&gt;
   }<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR><BR><BR><BR>-- <BR>O&lt; ascii ribbon campaign - stop html mail - www.asciiribbon.org<BR><BR></DIV></BLOCKQUOTE></td></tr></table><br>