I installed nginx with php and mysql. The problem is that I have no default domain site/file in "sites-available". I want to configure /phpmyadmin to be accessible from every domain. After the installation though, I see the error 404, how can I fix this?
Asked
Active
Viewed 402 times
0
-
Does it need to appear to be on that domain, or can you do a forward to a single domain? – Tim Sep 26 '16 at 18:38
-
it should be reacheable from any-domain.com/phpmyadmin path – Кристиян Кацаров Sep 26 '16 at 19:11
-
any-domain.com is pointed to the nginx server of course – Кристиян Кацаров Sep 26 '16 at 19:11
1 Answers
0
My initial thought is I'd just include a location block that allows access to phpMyAdmin in each Nginx server/site config file. However since you have to tell phpMyAdmin the URL it's installed on I don't think that will work.
I think you may have to install it separately on each domain, unless someone else comes up with a better solution.

Tim
- 31,888
- 7
- 52
- 78
-
`PmaAbsoluteUri` is not required, it's optional and only of real use in very specific situations where phpMyAdmin can't automatically determine the path. So I think your suggestion is a good one, omitting the PmaAbsoluteUri directive entirely from `config.inc.php`. – ibennetch Sep 26 '16 at 20:50