Reputation: 4816
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
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