
4th November 2009, 14:32
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

4th November 2009, 15:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,796
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
Thats not wrong, the setting ip  ort is absolutely correct.
|

4th November 2009, 17:23
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

4th November 2009, 17:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,796
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
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
|

4th November 2009, 18:55
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:28.
|
Recent comments
21 hours 24 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
1 day 16 hours ago
1 day 19 hours ago
2 days 45 min ago