Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 11th May 2010, 23:58
agramajo agramajo is offline
Junior Member
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default website subdomain wildcard support


With a simple modification we can have a wildcard in our website subdomain.

You want this, wildcard subdomain: *.example.com redirects to example.com

Go to: Sites -> Websites -> Subdomain for website -> Add new subdomain
Host: *
Domain: example.com
Redirect Type: No redirect

Then ISPConfig will generate "example.com.vhost" with:
ServerAlias *.example.com

Test it and use at your own risk.

I wait that this little patch could be included in next release. Only it allows * in regex domain verification. I use it in my production servers (Debian 5).


# wget ...
# cd /usr/local/ispconfig
# patch -p0 < ispconfig3_website-subdomain-wildcard.patch

I saw a post with a different solution.

Reply With Quote
Sponsored Links
Old 12th May 2010, 01:12
mike_p mike_p is offline
Senior Member
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts

either I misunderstand your request or this already exists:
when you add/edit a domain there is a feature "auto-subdomain"
Reply With Quote
Old 12th May 2010, 03:03
agramajo agramajo is offline
Junior Member
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Mike, you are right. I completely miss the "*." option in "auto sub-domain".

It is not necessary to patch it. I selected now that option.

And the ISPConfig generate "example.com.vhost" with:
ServerAlias *.example.com

Wow! ISPConfig3 don't forget nothing about Apache config. :-D

Reply With Quote


subdomain, website, wildcard

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
server Installation Configuration deco5003 Installation/Configuration 12 5th August 2009 13:00
Installation -- pcre_exec.c:403: internal compiler error: Segmentation fault zerman Installation/Configuration 2 24th September 2008 00:58
Update php shajazzi Server Operation 6 6th April 2008 19:20
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! micko_escalade Installation/Configuration 35 30th March 2007 12:31
ISPConfig Failure on SuSe 9.3 gimhan90 Installation/Configuration 13 2nd February 2006 11:29

All times are GMT +2. The time now is 06:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.