Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th September 2010, 20:05
MacGoose MacGoose is offline
Member
 
Join Date: Aug 2010
Posts: 37
Thanks: 2
Thanked 1 Time in 1 Post
Default Bug or feature in ... Domain > IP-Address

Hi!

Under Sites > Web Domain > Domain > IP-Address I can choose either the IP address of my server or *.

My servers name is something like server.mydomain.com and I have two domains www.mydomain.com and intranet.mydomain.com.

So if I go to these addresses in my browser they will go to their respective sites. Like this:

server.mydomain.com > correct website ( root )
www.mydomain.com > correct website ( web1 )
intranet.mydomain.com > correct website ( web2 )

However, if I under the settings above ... Domain > IP-Address set my intranet domain to the servers IP address. When I now try to browse to server.mydomian.com it shows the intranet site. Like this:

server.mydomain.com > wrong website ( web2 )
www.mydomain.com > correct website ( web1 )
intranet.mydomain.com > correct website ( web2 )

Also, if I only set the IP address of www.mydomain.com then there is no error. It seems to only affect the last added website.

Is this a bug? What does the ... Domain > IP-Address do really? What is the difference of setting it to an IP address or just *?

, MacGoose
Reply With Quote
Sponsored Links
  #2  
Old 7th September 2010, 21:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

Thats the normal behaviour of the apache webserver and not a bug.

You can either use a wildcard (*) in a apache vhost or the IP address. A IP address is always "stronger" then a wildcard. The result is that if you mix IP and * based vhosts, then a website gets redirected to the IP based site.

So the result of this, never mix IP's and * for websites that use the same IP, either use * for all websites that point to a specific IP or use * for all sites. A IP has to be used if you need a ssl certificate, otherwise * is fine as well.

If you like to know the details of how an apache server works, you might want to take a look at the apache server documentation: http://www.apache.org/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th September 2010, 21:35
MacGoose MacGoose is offline
Member
 
Join Date: Aug 2010
Posts: 37
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

Thanx! You've helped me alot.

, MacGoose
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
Send emails impossible 007007 Installation/Configuration 11 19th July 2010 01:09
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 12:47
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 13:47.


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