HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Duplicate virtual hosts (http://www.howtoforge.com/forums/showthread.php?t=637)

bosei 22nd September 2005 00:14

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

falko 22nd September 2005 01:42

What do you mean with duplicate virtual hosts? What does webmin say? I didn't receive a mail from you...

till 22nd September 2005 10:06

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?

Ovidiu 22nd September 2005 10:19

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

linuxfast 22nd September 2005 15:43

Just checked all my conf files for duplicate lines, and didn't find any.

Ovidiu 22nd September 2005 19:15

maybe bosei andme both didthe same thingwrong ;-))

Ovidiu 27th September 2005 22:21

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...

till 27th September 2005 22:23

Maybe you entered the IP twice in the management part of ISPConfig?

Ovidiu 27th September 2005 23:14

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 ;-)

bosei 22nd November 2005 02:19

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


All times are GMT +2. The time now is 17:58.

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