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.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th May 2010, 22: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

Hi!

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

Example:
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).

http://people.baicom.com/~agramajo/p...wildcard.patch

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

I saw a post with a different solution.

Regards,
Alejandro
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2010, 00: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
Default

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

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

Regards,
Alejandro
Reply With Quote
Reply

Bookmarks

Tags
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 12:00
Installation -- pcre_exec.c:403: internal compiler error: Segmentation fault zerman Installation/Configuration 2 23rd September 2008 23:58
Update php shajazzi Server Operation 6 6th April 2008 18:20
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! micko_escalade Installation/Configuration 35 30th March 2007 11:31
ISPConfig Failure on SuSe 9.3 gimhan90 Installation/Configuration 13 2nd February 2006 10:29


All times are GMT +2. The time now is 01:53.


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