Tobia Zanarella's picture

Hello to all,

I'm not very expert about Apache server configuration, but I'm pretty able to do almost every basic configuration on the web server. Anyhow, I can't find out how to do what I want to achieve.

I explain what I'd like to do:

- I don't want phpmyadmin to accessible only via SSL: I'd like PMA to be reachable also via http (maybe ONLY via Http, but that's not strictly necessary).

- I don't want PMA to be accessible via http://<server IP>:12322 . I'd like PMA to be accessible via a specific domain name such as http://pma.test.local (port 80, not 12322) (I have a DNS to route all requestes *.test.local to my server IP...).

- Also, if possible, I'd also like Webmin to be accessible via a specific domain name and a custom port (ie. 12321 as defaults).

I really can't reach this result! Can you kindly help me, please?
It's been about two days of googling and "turnkeying" without any results... I tried changing virtual servers, per-directory directives... Nothing.

 

Thank you very much.

Best regards.

Tobia Zanarella

Forum: 
Jeremy Davis's picture

I'm guessing by your posts so far that you know what you are doing. But for the record (and probably as much for anyone else who comes across this thread) I think it is a particularly bad idea. As you are probably aware, using http would allow anyone to relatively easily sniff out your MySQL password and take control of your data. Same applies to Webmin (over http).

Anyway, getting back to the point of your original request, a quick google suggests that you will probably need to adjust more than the virtual host to get it to work as desired. Have a look at the phpMyAdmin docs here. Hopefully that may head you in the right direction, otherwise if you keep in mind that TKL v11.x is based on Ubuntu 10.04 then you should find a fair bit of info about.

A final idea may be to 'apt-get remove --purge phpmyadmin' and then reinstall 'apt-get install phpmyadmin'. That should give you the default config (IIRC it will default to http(s?)://<server-fqdn-or-ip>/phpmyadmin).

Add new comment