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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd September 2005, 00:14
bosei bosei is offline
Member
 
Join Date: Aug 2005
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default Duplicate virtual hosts

When I look at apache virtual hosts in webmin I see duplicated virtualhosts. Is this correct or is ISPC somehow re-creating hosts each time I make an amendment? I have screenshots in .png format but they are too large to attache here so I will mail them to Falko and Till.

Thanks for any forthcoming solution.

Bosei
Reply With Quote
Sponsored Links
  #2  
Old 22nd September 2005, 01:42
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

What do you mean with duplicate virtual hosts? What does webmin say? I didn't receive a mail from you...
__________________
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:

Last edited by falko; 22nd September 2005 at 18:06.
Reply With Quote
  #3  
Old 22nd September 2005, 10:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

Quote:
Originally Posted by bosei
When I look at apache virtual hosts in webmin I see duplicated virtualhosts. Is this correct or is ISPC somehow re-creating hosts each time I make an amendment? I have screenshots in .png format but they are too large to attache here so I will mail them to Falko and Till.
I've had a look at your screenshot and there are no duplicates in ISPConfig.

One question. Was your Linux system empty (fresh install) as you installed ISPConfig or had you already hosted some websites on this server before you installed ISPConfig and these sites show now up as duplicates?
Reply With Quote
  #4  
Old 22nd September 2005, 10:19
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

I know what he means, recently I had a direct look into my apache configfiles I guess it was vhosts.conf or so and there where duplicate lines (entries) like:

<virtualhost:xx.xx.xx.xx:80>
<virtualhost:xx.xx.xx.xx:80>

just two identical lines of code, I also found duplicate Listen xx.xx.xx.xx 80 Listen xx.xx.xx.xx 80 lines or was it Port 80 Port 80?

I did not think much about that I just deleted one of every duplicate ;-))

I thought those entries senseless and anyway I was installing on a test machine
Reply With Quote
  #5  
Old 22nd September 2005, 15:43
linuxfast linuxfast is offline
Member
 
Join Date: Sep 2005
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just checked all my conf files for duplicate lines, and didn't find any.
Reply With Quote
  #6  
Old 22nd September 2005, 19:15
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

maybe bosei andme both didthe same thingwrong ;-))
Reply With Quote
  #7  
Old 27th September 2005, 22:21
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

I just found this line
Quote:
NameVirtualHost 81.169.xxx.xx:80
twice in my /etc/apache2/vhosts/Vhosts_ispconfig.conf

left it there as I don't know where it comes from...
Reply With Quote
  #8  
Old 27th September 2005, 22:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

Maybe you entered the IP twice in the management part of ISPConfig?
Reply With Quote
  #9  
Old 27th September 2005, 23:14
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

ahh, thats it I wasn't sure if I am supposed to enter the IP from above in the list below too. seems only additional adresses get in there, thx ;-)
Reply With Quote
  #10  
Old 22nd November 2005, 02:19
bosei bosei is offline
Member
 
Join Date: Aug 2005
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till
I've had a look at your screenshot and there are no duplicates in ISPConfig.

One question. Was your Linux system empty (fresh install) as you installed ISPConfig or had you already hosted some websites on this server before you installed ISPConfig and these sites show now up as duplicates?

When I recently upgraded ISPConfig. This confirms my suspicion and the problem first happened after a previous re-install. Please see below:

Creating new config (0x81b0d78) for (null)
Getting register_globals=1 for 0x81b0d78 (0)
Getting safe_mode=0 for 0x81b0d78 (1)
Merge dir (0x80f3758) (0x81b0d78)
Merge dir (0x80f3758) (0x81ae818)
Merge dir (0x80f3758) (0x81ad1b8)
Merge dir (0x80f3758) (0x81aab80)
Merge dir (0x80f3758) (0x81a37e8)
Merge dir (0x80f3758) (0x81a11a0)
Merge dir (0x80f3758) (0x819fe28)
Merge dir (0x80f3758) (0x819d718)
[Tue Nov 22 01:02:46 2005] [warn] VirtualHost 192.168.1.5:443 overlaps with VirtualHost 19 2.168.1.5:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Nov 22 01:02:46 2005] [warn] VirtualHost 192.168.1.10:443 overlaps with VirtualHost 1 92.168.1.10:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Nov 22 01:02:46 2005] [warn] NameVirtualHost 192.168.1.10:80 has no VirtualHosts
[Tue Nov 22 01:02:46 2005] [warn] NameVirtualHost 192.168.1.5:80 has no VirtualHosts
Destroying config 0x81b0d78
.................................................. ..............................................

Also, see entries in webmin (converted to text as screenshot file too large to post here) below:

Virtual Servers

Default Server Defines the default settings for all other virtual servers, and processes any unhandled requests.

Address Any
Port Any Server Name ex01.xconsultants.ltd
Document Root /srv/www/htdocs
Virtual Server Handles all requests to the address 192.168.1.10 on port 80.

Address 192.168.1.10
Port 80 Server Name www.someaccess.com:80
Document Root /srv/www/web6/web
Virtual Server Handles all requests to the address 192.168.1.10 on port 443.

Address 192.168.1.10
Port 443 Server Name www.someaccess.com:443
Document Root /srv/www/web6/web
Virtual Server Handles all requests to the address 192.168.1.5 on port 80.

Address 192.168.1.5
Port 80 Server Name www.xconsultants.ltd:80
Document Root /srv/www/web7/web
Virtual Server Handles all requests to the address 192.168.1.5 on port 443.

Address 192.168.1.5
Port 443 Server Name www.xconsultants.ltd:443
Document Root /srv/www/web7/web
Virtual Server Handles all requests to the address 192.168.1.10 on port 80.

Address 192.168.1.10
Port 80 Server Name www.someaccess.com:80
Document Root /srv/www/web6/web
Virtual Server Handles all requests to the address 192.168.1.10 on port 443.

Address 192.168.1.10
Port 443 Server Name www.someaccess.com:443
Document Root /srv/www/web6/web
Virtual Server Handles all requests to the address 192.168.1.5 on port 80.

Address 192.168.1.5
Port 80 Server Name www.xconsultants.ltd:80
Document Root /srv/www/web7/web
Virtual Server Handles all requests to the address 192.168.1.5 on port 443.

Address 192.168.1.5
Port 443 Server Name www.xconsultants.ltdk:443
Document Root /srv/www/web7/web

Last edited by bosei; 22nd November 2005 at 04:01.
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
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58
Virtual hosts not working erik Installation/Configuration 1 25th August 2005 15:45
virtual hosting m u r Installation/Configuration 2 21st August 2005 15:49
DNS in virtual machines todvard Installation/Configuration 2 15th August 2005 19:43


All times are GMT +2. The time now is 00:05.


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