Hi,
I've got the following problem:
I have a 'main' domain with it's own account, eg. maindomain.com.
I've set up wildcard DNS for this, and it works fine.
So http://bla.maindomain.com runs the script domains/maindomain.com/public_html/index.php
DNS: *.maindomain.com. A IP-address
Custom httpd.conf: ServerAlias *.|DOMAIN|
Now I also have clients that will be using the same script. I've added their domains (clientdomain.com) as a domain pointer (alias) in the account. If i enter http://clientdomain.com or http://www.clientdomain.com it runs the correct script in domains/maindomain.com/public_html/index.php.
Seems to be perfect, but when i try http://bla.clientdomain.com, I get the server message "Apache is functioning normally".
For the domain pointer I've also set up wildcard subdomains, just like the main domain:
DNS: *.clientdomain.com. A IP-address
Custom httpd.conf: ServerAlias *.|DOMAIN|
I've also tried to create a subdomain by adding
DNS: test.clientdomain.com. A IP-address
but that also gives me the "Apache is functioning normally" page.
Is it possible what I'm trying to achieve with the domain pointers? If not, what would be a better way to achieve this?
Thanks
I've got the following problem:
I have a 'main' domain with it's own account, eg. maindomain.com.
I've set up wildcard DNS for this, and it works fine.
So http://bla.maindomain.com runs the script domains/maindomain.com/public_html/index.php
DNS: *.maindomain.com. A IP-address
Custom httpd.conf: ServerAlias *.|DOMAIN|
Now I also have clients that will be using the same script. I've added their domains (clientdomain.com) as a domain pointer (alias) in the account. If i enter http://clientdomain.com or http://www.clientdomain.com it runs the correct script in domains/maindomain.com/public_html/index.php.
Seems to be perfect, but when i try http://bla.clientdomain.com, I get the server message "Apache is functioning normally".
For the domain pointer I've also set up wildcard subdomains, just like the main domain:
DNS: *.clientdomain.com. A IP-address
Custom httpd.conf: ServerAlias *.|DOMAIN|
I've also tried to create a subdomain by adding
DNS: test.clientdomain.com. A IP-address
but that also gives me the "Apache is functioning normally" page.
Is it possible what I'm trying to achieve with the domain pointers? If not, what would be a better way to achieve this?
Thanks
Last edited: