Help - Search - Members - Calendar
Full Version: How to setup Wildcards for PLESK
The Planet Forums > Control Panels > Plesk
chris207
How do I set up wildcards for my plesk VPS?
(We can use puTTy too if needed)

The wildcard setup I'm suppose to do is as follows;

-----------------BEGIN MY DIRECTIONS-----------------

If you running on Apache (Who is not in these days ?) setup your DNS with a wild card as well i.e

*.domain.com 123.123.123.123
mail.domain.com 123.123.123.123
www.domain.com 123.123.123.123

In your httpd.conf file edit your virtual host section like this:
see also http://www.apache.org/ for details if you are new to apache

Code:


ServerName vhost.domain.com
ServerAdmin webmaster@domain.com
ServerAlias *.domain.com <--------------This line makes it
DocumentRoot /usr/local/etc/httpd/vhosts/domain.com/htdocs
TransferLog /var/log/domain.com.access.log
ErrorLog /var/log/domain.com.error.log

AllowOverride All
AddHandler cgi-script .cgi
DirectoryIndex index.html index.php index.cgi
Options FollowSymLinks ExecCGI




Now every URL *.domain.com will be resolved in your DocumentRoot
i.e. user1.domain.com / user2.domain.com / user3.domain.com

-----------------END MY DIRECTIONS-----------------

Any help on this would GREATLY appreciated and I will send you money via paypal.
eth00
This may break plesk for the domain, I would not try to modify it afterwards and I am NOT a plesk expert. What I am going to show you is how to simply do what the above says.

1) Edit /var/named/domain.com.db
pico -w /var/named/domain.com.db

Change:


www 14400 IN A 123.123.123.123

TO

*.domain.com. 14400 IN A 123.123.123.123

(notice the ending dot!)

Not in apache edit it and just change the serveralias to * from www.domain.com and it hsould work.

I am not sure what this will do to plesk!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.