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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd April 2009, 23:49
jolierouge jolierouge is offline
Junior Member
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Shared IP Fun: How to set ServerAlias for VHosts

Hey All,

Whenever I setup a site, it ends up as ServerName www.domain.com. in the Vhost.conf.

If I try to access the site with just http://domain.com I get the shared IP funness, is there a way to get ISPConfig to automagically insert ServerAlias for the www. and just be able to use the domain.com part for the ServerName?

That is, is there a way to do this without hacking the system/db.

Thanks,
Jason
Reply With Quote
Sponsored Links
  #2  
Old 23rd April 2009, 00:04
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
Default

What I do, is creating a co-domain (without hostname), which forwards to the hostname I want it to.
Also the way that works if you have domains with similar spelling (ie abc.com ab-c.com a-bc.com) that you all want to end up as www.abc.com.

Paul
Reply With Quote
  #3  
Old 24th April 2009, 00:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by jolierouge View Post
Hey All,

Whenever I setup a site, it ends up as ServerName www.domain.com. in the Vhost.conf.

If I try to access the site with just http://domain.com I get the shared IP funness, is there a way to get ISPConfig to automagically insert ServerAlias for the www. and just be able to use the domain.com part for the ServerName?

That is, is there a way to do this without hacking the system/db.

Thanks,
Jason
ISPConfig creates
Code:
ServerName www.domain.com
and
Code:
ServerAlias domain.com
by default.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 24th April 2009, 00:17
jolierouge jolierouge is offline
Junior Member
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Weird

Hey,

I did some investigating and it seems that it does in fact do this, and all other domains (about 20) perform as expected, i.e. www AND no www.

It's just this one domain that gives me the shared IP problem...

I'll need to investigate further, and if I find the problem I'll be sure to post it.

/Jason
Reply With Quote
  #5  
Old 24th April 2009, 15:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

I guess you deleted the Co-Domain domain.com. You can recreate it on the Co-Domains tab.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
yum issues el-sid Installation/Configuration 4 10th August 2011 11:01
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Admin Program for Virtual Users and Domains Postfix courier etc...(Ubuntu 8.04)? the1rob HOWTO-Related Questions 11 4th August 2009 04:54
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 18:56.


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