HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Add new website: folders OK but still "shared IP" notice (http://www.howtoforge.com/forums/showthread.php?t=13799)

djkoelkast 2nd July 2007 16:24

Add new website: folders OK but still "shared IP" notice
 
I reinstalled Debian 4.0 through the perfect setup yesterday, everything was fine, added about 26 websites, all fine.
But when I add another website now as admin but for one of my reseller accounts it does make the domain, it does make the /var/www/webXX/ folder but it still gives a shared IP when I type in the address, even after uploading files.

The site does *not* appear in /etc/apache2/vhosts/Vhosts_ispconfig.conf nor in one of the backup files. But before (the other 26 sites) it did...

This also appears when I add the site under Admin (just tested it).

When I restart Apache I get this:

Code:

server:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...[Mon Jul 02 16:22:06 2007] [warn] NameVirtualHost 192.168.1.75:80 has no VirtualHosts
[Mon Jul 02 16:22:16 2007] [warn] NameVirtualHost 192.168.1.75:80 has no VirtualHosts
.
server:~#

I already tried to comment out some of the virtual host things as in one of the howtos here on the site but it didn't help.
And now I cannot add any sites, or I have to manually edit the /etc/apache2/vhosts/Vhosts_ispconfig.conf-file every time...

Anybody any suggestions on this?

Thanks

Hans 2nd July 2007 18:28

Do you have the line:

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

At the very end within your apache2 configuration file which is /etc/apache2/apache2.conf ?

djkoelkast 2nd July 2007 18:37

Quote:

Originally Posted by Hans
Do you have the line:

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

At the very end within your apache2 configuration file which is /etc/apache2/apache2.conf ?

yes, the last line is (copy/paste from the actual file):

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

djkoelkast 2nd July 2007 22:41

I found out that everytime I make a new domain it will make a new file, like:

Vhosts_ispconfig.conf_02-07-07_22-02-29
Vhosts_ispconfig.conf_02-07-07_22-02-16
Vhosts_ispconfig.conf_02-07-07_22-02-02
Vhosts_ispconfig.conf_02-07-07_21-50-15

etc. and these do contain the updated versions!
I renamed the last one to Vhosts_ispconfig.conf and it does work, though the error is still there... (the [warn] thing)

till 3rd July 2007 09:39

Please have a look here:

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

djkoelkast 3rd July 2007 10:16

ok but I don't see a solution for my problem? I did rename it but next time it will give a new file with a new date again...

httpd -t gives:

Code:

server:~# httpd -t
[Tue Jul 03 10:16:29 2007] [warn] NameVirtualHost 192.168.1.75:80 has no VirtualHosts
Syntax OK


Hans 3rd July 2007 14:17

Is the IP-address 192.168.1.75 also mentioned within your file /etc/network/interfaces and within ISPConfig under Management > Server > Settings?

djkoelkast 3rd July 2007 14:22

Quote:

Originally Posted by Hans
Is the IP-address 192.168.1.75 also mentioned within your file /etc/network/interfaces and within ISPConfig under Management > Server > Settings?

Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# allow-hotplug eth1
auto eth1
iface eth1 inet static
address 192.168.1.75
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.50

eth0 is the onboard 10/100 which I don't use, I do use eth1 which is a 1000mbit card.

It is also mentioned under management > server under IP address

falko 3rd July 2007 15:42

I hope your file looks rather like this:

Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# allow-hotplug eth1
auto eth1
iface eth1 inet static
    address 192.168.1.75
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.50

The leading spaces are important - they mean that the address, netmask, etc. settings still belong to eth1.

djkoelkast 3rd July 2007 15:53

actually no, the file was 1 on 1 copy/paste, there are no leading spaces or a tab, so I should add them I guess

Strange thing still is that the first 26 domains gave no problem ;)

Should I add some spaces or 1 tab before the lines?


All times are GMT +2. The time now is 18:36.

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