<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all, <br>
<br>
I am trying, and failing to set up a server to serve phpmyadmin. <br>
<br>
This is my config (one of about 30 tried). <br>
<br>
server {<br>
listen 80 default;<br>
server_name default.anake.hcs localhost;<br>
index index.php index.htm index.html;<br>
root /var/www/nginx-default/;<br>
location /doc {<br>
root /usr/share;<br>
autoindex on;<br>
allow 127.0.0.1;<br>
deny all;<br>
}<br>
location /images {<br>
root /usr/share;<br>
autoindex on;<br>
}<br>
#<br>
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br>
#<br>
location ~ \.php$ {<br>
set $php_root $document_root; <br>
if ($request_uri ~* /phpmyadmin) { <br>
set $php_root /usr/share; <br>
} <br>
fastcgi_param SCRIPT_FILENAME $php_root$fastcgi_script_name;<br>
include /etc/nginx/fastcgi.conf;<br>
fastcgi_pass 127.0.0.1:9000;<br>
}<br>
#<br>
# phpmyadmin - installed in /usr/share/phpmyadmin/index.php etc<br>
#<br>
location /phpmyadmin {<br>
root /usr/share; <br>
index index.php; <br>
}<br>
}<br>
<br>
Results <br>
/test.php Correct. Properly passes
/var/www/nginx-default/tesst.php to fast-cgi and displays the results<br>
/phpmyadmin No input file specified.
<b><br>
</b>/phpmyadmin/ No input file specified.
<br>
/phpmyadmin/index.php No input file specified.
<br>
<br>
I'm using nginx/0.7.67 <br>
<br>
Help much appreciated<br>
<br>
Regards<br>
Ian<br>
<br>
</body>
</html>