Jeff Thomas
Jeff Thomas

Reputation: 4816

Map phpMyAdmin to a port on CentOS and Apache

I was wondering how I would go about setting up the virtual hosts so that I just have to enter www.mydomain.com:9090 to go to phpmyadmin. This is how I have my vhosts set up right now in httpd.conf:

<VirtualHost *:80>
    DocumentRoot /var/www/html/
    ServerName mydomain.com
    ServerAlias www.mydomain.com
</VirtualHost>

<VirtualHost *:9090>
    DocumentRoot /usr/share/phpMyAdmin/
    ServerName mydomain.com
    ServerAlias www.mydomain.com
</VirtualHost>

This does not seem to be working.

Upvotes: 1

Views: 5842

Answers (2)

Andrew
Andrew

Reputation: 19

Add the new Virtual host in /etc/httpd/conf.d/localhost.conf and then edit httpd.conf in /etc/httpd/ to listen to new port. Restart httpd and then opened the port in IPtables. Apply the new rules.

Upvotes: 1

scurker
scurker

Reputation: 4753

Have you tried adding... Listen 9090 to your config?

Upvotes: 1

Related Questions