Listen on multiple ports

XBL

Verified User
Joined
Nov 30, 2004
Messages
50
Location
Castricum, The Netherlands
Listen on multiple ports [fixed]

Hi,

We're going to move from cPanel to Direct Admin. Because we don't want to have any problems with ppl who don't read their mail (and therefor didn't receive the move-messages), we want to set up Apache to listen on port 2082 (cpanel) and 2095 (webmail) for a while, redirecting them to a page explaining what happend to their panel ;).

Now, this didn't look to hard, but I don't get it to work. No clue what I'm doing wrong and I hope someone does know what I'm doing wrong, and can help me out.

This is the virtualhost I'm using:

Code:
Listen 2082
<VirtualHost *:2082>
        ServerName cpanel
        ServerAdmin [email][email protected][/email]
        #AliasMatch ^/~([^/]+(/.*)* /home/$1/public_html$2
        DocumentRoot /var/www/html/verhuizing
        ScriptAlias /cgi-bin/ /var/www/verhuizing/cgi-bin/

        CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

I just copied a lot from one of the existing virtual hosts. I commented 'AliasMatch' out, because it gave errors on the start op apache. But I don't think that is the source to my problem.

Hope someone can help me on this one.

Jochem
 
Last edited:
Thanks for reading, but I already fixed it. Right after posting this, I spoke to the other sysadmin and he said "Is apf installed that server?" and I was like "Errr, yes... DOH". Pretty stupid. Opened the ports and it works like a charm.

Jochem
 
I am getting sick of IPFirewall.... got a URL for that?

Big Wil
 
Back
Top