saatchi
Basic Pleskian
Hello,
I search my problem and I couldn't find & solve it. I think that it's a public problem for who wants to make virtual sub-domains.
I want to redirect my non-exist subdomains to my main site with its parameters like this :
nonexist.mydomain.com -> mydomain.com/?name=nonexist
To make virtual subdomain,
1- I added an A record: * A my-ip-address
2- After that, I added "ServerAlias *.mydomain.com" into conf/vhost.conf
After this, my non-exist subdomains are working but they will open Apache's default page. How can I set that I want to open my main site.
I search my problem and I couldn't find & solve it. I think that it's a public problem for who wants to make virtual sub-domains.
I want to redirect my non-exist subdomains to my main site with its parameters like this :
nonexist.mydomain.com -> mydomain.com/?name=nonexist
To make virtual subdomain,
1- I added an A record: * A my-ip-address
2- After that, I added "ServerAlias *.mydomain.com" into conf/vhost.conf
After this, my non-exist subdomains are working but they will open Apache's default page. How can I set that I want to open my main site.