Hello,
I have MyLounge setup and working perfectly for one of my domains, but here is my problem.
I am running on a dedicated server for which I have full access. I know how to edit DNS Zones and the httpd.conf file and have done so for the domain that is working.
I have the DNS Zone for this domain set up with a CNAME entry as follows:
*.mydomain.com. 14400 IN CNAME mydomain.com.
It all works just peachy, although I'm not sure I should be using the CNAME option. Maybe I should be using the A type and the IP that is hosting all of my sites on this server.
Maybe you can help me decide, but there is more to this question.
I have set up multiple accounts on this server under WHM and 3 of the accounts I am wanting to use the MyLounge script on separately. I know I can run more than one domain with one installation of MyLounge, but this won't work for me.
In the customized set up that I'm using, the redirectURLS are pre-set by the script using the person's chosen username. In other words, the redirect URL or target URL is set as http://SomeDomain.com/{domainname}/somepage.shtml. Each different domain that I want to run MyLounge on will have a different redirect address that I'll be using. the PAGE it points to will be different.
So, as best I can tell I HAVE to set up multiple instances of MyLounge.
And, therein lies the problem.
I have set MyLounge up on 3 different domains, each with a different account on my server. So, of course, I have 3 different DNS zones, one for each domain with a wildcard CNAME entry on each as I indicated above. In addition, I have modified the VirtualHost entry in the httpd.conf file for each of them so that they each have the following basic format:
<VirtualHost 123.456.789.123>
ServerAlias *.thedomaininquestion.com
ServerAdmin webmaster@thedomaininquestion.com
DocumentRoot /home/account-username/public_html
BytesLog domlogs/thedomaininquestion.com-bytes_log
ServerName www.thedomaininquestion.com
User account-username
Group account-username
CustomLog domlogs/thedomaininquestion.com combined
ScriptAlias /cgi-bin/ /home/account-username/public_html/cgi-bin/
</VirtualHost>
The problem is, it appears that the two domains I added AFTER the first MyLounge install on the initial domain are pointing all subdomain traffic to the initial domain (which sits at the top of the Virtual Hosts section of my httpd.conf file).
Is this normal behavior? Is it actually possible to have multiple wildcarded domains running off the same IP and listed within the same httpd.conf file? If so, what am I doing wrong?
Thanks for any help.