#1  
Old 4th November 2009, 14:32
Dutchy Dutchy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default vhosts by hostname, not ip

I have to configure and fix an existing ISPConfig 3 install and I encountered the following problem:

For all websites I create, vhosts are made in the form:
Code:
<VirtualHost ip:port>
This is wrong when it should be:
Code:
<VirtualHost domain.example.com:port>
I imagine this is a setting somewhere, but I have no idea where to look. I could obviously fix all these manually, but I hope somebody has a better idea?
Reply With Quote
  #2  
Old 4th November 2009, 15:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,796
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
Default

Thats not wrong, the setting iport is absolutely correct.
__________________
Till Brehm
--
http://www.projektfarm.com/en/
Reply With Quote
  #3  
Old 4th November 2009, 17:23
Dutchy Dutchy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If it is correct, would you be so kind as to explain why this is correct?

We have multiple domains pointing to the same IP and we want to run multiple sites on multiple (sub)domains. Coming from an Apache configs background myself, i would use VirtualHosts for this.

I get the idea this is not the way ISPConfig works, but I don't quite understand what should be used to do this then.
Reply With Quote
  #4  
Old 4th November 2009, 17:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,796
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
Default

Quote:
We have multiple domains pointing to the same IP and we want to run multiple sites on multiple (sub)domains.
Thats the standard way in configuring it and ispconfig uses virtualhosts for this. In ISPConfig, either select the IP address for all sites or select * for all sites.

See apache virtualhost documentation:

http://httpd.apache.org/docs/2.0/vhosts/examples.html

you always use * or the IP address in the virtualhost directive and not the domain name. The domain name is used in the ServerName directive and thats exctly how ispconfig configures it.

You should assiume that if a controlpanel is used many thousand hosting servers worldwide that it is able to configure virtualhosts then
__________________
Till Brehm
--
http://www.projektfarm.com/en/
Reply With Quote
  #5  
Old 4th November 2009, 18:55
Dutchy Dutchy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are right, I should assume that (in most cases)

I have things working now, after a manual graceful restart of apache, not sure why it did not work before. I only noticed that it does not work with *:80 but I don't care about that at this point.
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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 101 20th November 2009 00:49
postfix/trivial-rewrite digitalage HOWTO-Related Questions 18 11th November 2009 19:15
problem with mail server setup kentor HOWTO-Related Questions 27 16th July 2009 16:22
Hostname question, and DNS question andrewfashion General 1 20th April 2009 14:30
Installing A LAMP System With Fedora Core 6 - Page 4 LAEAGLE HOWTO-Related Questions 11 24th February 2007 15:59


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th