<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>I don't know what tot say, here is my config file (after the sample with subdomain that works) but it still doesn't work. phpmyadmin is installed in /usr/share/phpmyadmin and site works fine, so it's no error in my config file. it works only when I create a new vhost file like this and access phpmyadmin as a subdomain</P><P><BR></P><P><BR></P><P><BR></P><P>server {<BR>    listen 80;<BR>    server_name phpmyadmin.domainname.com;<BR>    access_log  /home/apps/logs/phpmyadmin.access_log;<BR>    error_log  /home/apps/logs/phpmyadmin.error_log;<BR><BR>    location / {<BR>         root /usr/share/phpmyadmin;<BR>         index index.php;<BR>    }<BR><BR>    location ~ \.php$ {<BR>        fastcgi_pass   127.0.0.1:8888;<BR>        fastcgi_index  index.php;<BR>        fastcgi_param  SCRIPT_FILENAME  /usr/share/phpmyadmin$fastcgi_script_name;<BR>        include
 /etc/nginx/fastcgi.conf;<BR>    }<BR>}<BR></P><P><BR></P><P>vhost.conf</P><P><BR>server {<BR>            listen   80;<BR>            server_name  www.mydomain.com;<BR><BR>                        #redirect www to non-www<BR>            rewrite ^/(.*) http://mydomain.com/$1 permanent;<BR><BR><BR>       }<BR><BR><BR>server {<BR>                        listen   80;<BR>                        server_name mydomain.com;<BR>            access_log /home/mydomain/log/access.log;<BR>            error_log /home/mydomain/log/error.log;<BR><BR>            index index.php index.htm index.html;<BR>location   ^~ /phpmyadmin/ {<BR>  root /usr/share;<BR>  include /usr/local/nginx/conf/fastcgi_params;<BR>  fastcgi_pass  127.0.0:9002;<BR>}<BR><BR>location /  {<BR>                                root   /home/mydomain/public_html/;<BR>                                index  index.php index.html;<BR>                                expires 30d;<BR><BR>                     
           #stop image and files hotlinking<BR>                                location ~* ^.+\.(gif|jpg|png|swf|flv|rar|zip|jpeg|css)$ {<BR>                                valid_referers none blocked mydomain.com www.mydomain.com *.google.com *.yahoo.com;<BR>                                if ($invalid_referer) {<BR>                                return 444;<BR>                                }<BR>                                }<BR><BR>                                #joomla sef url's<BR>                                if (!-e $request_filename) {<BR>                                        rewrite  ^(.*)$  /index.php?q=$1  last;<BR>                                        break;<BR>                                                                }<BR>                                        }<BR><BR>                                if ( $args ~ "mosConfig_[a-zA-Z_]{1,21}(=|\%3d)" ) {<BR>                                set $args "";<BR><BR>rewrite ^.*$
 http://$host/index.php last;<BR>                                return 403;<BR>                                }<BR><BR>                                if ( $args ~ "base64_encode.*\(.*\)" ) {<BR>                                set $args "";<BR>                                rewrite ^.*$ http://$host/index.php last;<BR>                                return 403;<BR>                                }<BR><BR>                                if ( $args ~ "(\&lt;|%3C).*script.*(\&gt;|%3E)" ) {<BR>                                set $args "";<BR>                                rewrite ^.*$ http://$host/index.php last;<BR>                                return 403;<BR>                                }<BR><BR>                                if ( $args ~ "GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ) {<BR>                                set $args "";<BR>                                rewrite ^.*$ http://$host/index.php last;<BR>                                return
 403;<BR>                                }<BR><BR>                                if ( $args ~ "_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ) {<BR>                                set $args "";<BR>                                rewrite ^.*$ http://$host/index.php last;<BR>                                return 403;<BR>                                }<BR><BR></P><P># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9002<BR>            location ~ \.php$<BR>                                {<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 /home/digitalfav/public_html/$fastcgi_script_name;<BR>                        }<BR><BR><BR>                        ## All other errors get the generic error page<BR>                        error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417<BR>        
         500 501 502 503 504 505 /error_page.html;<BR>                        location  $document_root/error_page.html {<BR>                        internal;<BR><BR>                 }<BR><BR>                 }<BR><BR></P><BR>--- On <B>Mon, 9/14/09, Ian Hobson <I>&lt;ian@ianhobson.co.uk&gt;</I></B> wrote:<BR><BLOCKQUOTE style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><BR>From: Ian Hobson &lt;ian@ianhobson.co.uk&gt;<BR>Subject: Re: How to configure phpmyadmin with nginx ?<BR>To: nginx@sysoev.ru<BR>Date: Monday, September 14, 2009, 12:52 AM<BR><BR><DIV class="plainMail">Hi se7en,<BR><BR>Your location line is incorrect and you may need a line to send php over also. Try the following inside your server directive.<BR><BR>index index.php index.htm index.html;<BR>location   ^~ /phpmyadmin/ {<BR>  root /usr/share;<BR>  include /????/fastcgi_params;<BR>  fastcgi_pass  127.0.0:9002;<BR>}<BR>location ~ \.php
 {<BR>   include  /????/fastcgi_params;<BR>   fastcgi_pass  127.0.0.1:9002;<BR>}<BR><BR>Don't forget to replace the ??? with the correct path - mine is /etc/nginx/ and check that phpmyadmin<BR>has been installed in /usr/share/phpmyadmin - or adjust the root.<BR><BR>Regards<BR><BR>Ian<BR><BR><BR>SE7EN wrote:<BR>&gt; <BR>&gt; I added this,I verify it, everything is correct, my site works fine but accessing <A href="http://mydomain.com/phpmyadmin" target="_blank">http://mydomain.com/phpmyadmin</A> still doesn't work, a 500 server errror appears.<BR>&gt; <BR>&gt; location ~ /phpmyadmin/.*\.php$ {<BR>&gt;   root /usr/share/;<BR>&gt;   fastcgi_pass 127.0.0.1:9002;<BR>&gt;   fastcgi_index index.php;<BR>&gt;   include /usr/local/nginx/conf/fastcgi_params;<BR>&gt;   fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;<BR>&gt;   }<BR>&gt; <BR>&gt;   location /phpmyadmin/ {<BR>&gt;   root
 /usr/share/;<BR>&gt;   index index.php;<BR>&gt;   }<BR>&gt; <BR>&gt; <BR><BR><BR></DIV></BLOCKQUOTE></td></tr></table><br>