XBL
Verified User
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:
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
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: