#1  
Old 17th September 2005, 20:02
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default default virtual host

Hi there,
once I specify a NameVirtualHost directive for an IP address, such as ispconfig does for each IP there is a site for, I would like to be able to specify which virtualhost is used if the IP is accessed directly.
As far as I know this can only be done by specifying the order in which virtualhosts are listed in apache's config file. I.e. the first virtualhost listed for that IP is the one that is displayed if the IP address is accessed directly. In ISPConfig's terms this is the last site added for that IP, if I understand correctly how it is done in ispconfig.
Now my question: can I edit the file manually and change the order of VirtualHosts without confusing ISPConfig or would it cause a lot of trouble to implement a default VirtualHost in ISPConfig?
Regards,
~jm
Reply With Quote
Sponsored Links
  #2  
Old 17th September 2005, 20:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

Hi,

please have a look at this thread:

http://www.howtoforge.com/forums/showthread.php?t=588

Till
Reply With Quote
  #3  
Old 17th September 2005, 20:24
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default

Yes, I have seen that but it is not a clean solution and Apache complains:

[error] VirtualHost 1.2.3.4:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
Reply With Quote
  #4  
Old 17th September 2005, 20:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
 
Default

Quote:
Originally Posted by jmroth
Yes, I have seen that but it is not a clean solution and Apache complains:

[error] VirtualHost 1.2.3.4:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
Then add:

<VirtualHost 192.168.0.1:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot /path/to/your/company/website/
</VirtualHost>
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 Host for Shared IP Tribal-Dolphin Feature Requests 3 24th October 2005 20:55
webpages only display default site bosei Installation/Configuration 9 9th September 2005 21:25
Enable PHP in default directory ProTrooper Installation/Configuration 4 24th August 2005 18:26
DNS in virtual machines todvard Installation/Configuration 2 15th August 2005 19:43
my default webserver failed Venkatesh.S General 1 25th July 2005 10:11


All times are GMT +2. The time now is 02:20.


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