Can't get nginx to work with Adminer nor phpMyadmin

Francis Daly francis at daoine.org
Mon Jun 2 23:12:48 UTC 2014


On Mon, Jun 02, 2014 at 10:12:03PM +0200, KC wrote:

Hi there,

> I want to be able to type http://ipaddress/phpmyadmin (or adminer)
> and see its respective interface. But as it is now, I only get 404
> error.

If you want http://ipaddress/phpmyadmin and http://ipaddress/adminer to
both work, you will probably want a single server{} block with all of
the configuration.

http://nginx.org/en/docs/http/request_processing.html for the reason.

After you've done that, configure each application independently,
probably by wrapping the normal "it's a php script" configuration within
location blocks like

  location ^~ /adminer/

After that, when you test, you can read the nginx logs to see exactly
why the 404 was produced.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list