VirtualHost

It's not difficult to install myLounge Redirection, but sometimes it's quite tricky. Post your questions in here.

Moderator: Scooby

VirtualHost

Postby RickP » Mon Aug 02, 2004 6:39 pm

I have been working on this for over a week with the Techs from the server lease company.

We have WHM & cPanel on the server.

We have set up Wildcard DNS for the domain

they have made these changes to the VirtualHost setting in the httpd.conf

XXXXXXXXXXXXXXXXXXXXXX
<VirtualHost (xxx.xxx.xxx.xxx)>
ServerAlias www.domain.com*.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain.com/public_html
BytesLog domlogs/domain.com-bytes_log
ServerName www.domain.com
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
User username
Group username
CustomLog domlogs/domain.com combined
</VirtualHost>

XXXXXXXXXXXXXXXX

Where the xxx.xxx.xxx.xxx is the server IP address

When you click on one of the shortened URLs the script produces - you get a cPanel error:

There is no website configured at this address.

You are seeing this page because there is nothing configured for the site you have requested. If you think you are seeing this page in error, please contact the site administrator or datacenter responsible for this site.

Need help - Thanks
RickP
RickP
 

Postby Scooby » Mon Aug 02, 2004 8:06 pm

could be in need a space

ServerAlias domain.com *.domain.com

have you also added * A entry in the dns for the domain

Also need RewriteEngine should be enabled for this domain ("RewriteEngine on")

have emailed you but posted here too
User avatar
Scooby
helpful guy
helpful guy
 
Posts: 252
Joined: Fri Jan 24, 2003 2:04 pm
Location: UK

Postby fastforward » Mon Sep 27, 2004 4:59 pm

Code: Select all
<VirtualHost (xxx.xxx.xxx.xxx)>
ServerAlias www.domain.com *.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain.com/public_html
BytesLog domlogs/domain.com-bytes_log
ServerName www.domain.com
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
User username
Group username
CustomLog domlogs/domain.com combined
RewriteEngine on
</VirtualHost>


Question:

I have 4 domains parked on my main domain (5 domains total) that I am using for the service. I have added the parked domains to the script via myred admin panel.

The redirection works perfectly if the user selects the main domain - however if the user selects the parked domains - cpanel page appears.

Do I need to add additional entries to the httpd.conf for each parked domain? If so, what entries are required?

I know that there have been upteen posts relating to cpanel - but none have addressed multiple TLD redirection and the httpd.conf or cpanel (or at least none of the ones that appeared in my search).

Thanks in advance.
fastforward
Newbie
Newbie
 
Posts: 5
Joined: Sat Sep 18, 2004 3:17 pm

Postby Scooby » Mon Sep 27, 2004 5:04 pm

yes you need to add each parked domain as well also make sure it has a * a record in dns

ServerAlias www.domain.com *.domain.com www.domain2.net *.domain2.net etc
User avatar
Scooby
helpful guy
helpful guy
 
Posts: 252
Joined: Fri Jan 24, 2003 2:04 pm
Location: UK

Postby fastforward » Mon Sep 27, 2004 5:07 pm

Scooby wrote:yes you need to add each parked domain as well also make sure it has a * a record in dns

ServerAlias www.domain.com *.domain.com www.domain2.net *.domain2.net etc


YOU THE MAN! :)

So just to clarify:

- each domain requires a * A record in the dns

- each domain needs to be added to the ServerAlias (multiple virtualhost entries are not required)
fastforward
Newbie
Newbie
 
Posts: 5
Joined: Sat Sep 18, 2004 3:17 pm

Postby Guest » Sat Oct 16, 2004 2:26 pm

i did the above and it still doesnt work ...

any idea? it still pointing back to the cpanel
Guest
 

Postby Guest » Mon Nov 01, 2004 8:25 am

did you give it time to propogate?
Guest
 

on second though

Postby emarketdeal » Mon Nov 01, 2004 8:26 am

i'll be doing multiple tld's on my host with cpanel and WHM, I'll let you know if I run into problems or what I do.

cheers,

Charles
emarketdeal
 


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron