SFighter86
03-30-2002, 10:29 AM
k my host has plesk and he enabled my wildcards by setting *.mydomain.com "A" to the server IP... but everytime someone goes to a sub, it goes to a default plesk page... i always read that you can have wildcards without a dedicated ip... sooooooooo how do i do it? plz help!
- SF
Unless you have defined virtual host in Apache, everyone will land on the IP address (main web site).
You need to define Virtual Hosts in Apache to take care.
This will happen if you do not have a dedicated IP. Because of the way plesk works, you will have to have him switch you to a dedicated IP. Plesk does not let you edit the virtualhosts it creates and any changed you make will be erased. The only solution for you is to change to a dedicated IP plan.
It CAN be done without switching to dedicated IP.
Just tell your host to look into adding appropriate directives to ".../yourdomain.com/conf/vhost.conf" file. It will work just the same as if it was added to your virtualhosts container.
As a side note: it is true that Plesk overwrites httpd.include but it does not overwrite any changes done to httpd.conf.
If you make a custom virtualhost container and put it in the httpd.conf *before* httpd.include is called, the 1st virtualhost will have precendence. This way Plesk's httpd.include won't matter at all (for this virtual host). But in this case, this is not needed. Just a simple addition to vhost.conf file will solve this problem.
If your host has troubles when doing this, feel free to drop me a note. We use this often on our servers.