• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

problem with Vhosts (Ubuntu 12.04, Plesk 12.08)

SiegbertG

New Pleskian
Hello,
I have a Problem with my VHosts on one of two IP adresses.
One IP is dedicated and works well
The other IP is shared. Since two days every call to one of the websites of this share ip goes to the Plesk Default Website. I tried to reconfigure single sites and all sites (/usr/local/psa/admin/bin/httpdmng --reconfigure-all), nothing works and restarting apache shows some warnings.

apache2ctl -S shows the following lines:
Code:
[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7080 overlaps with VirtualHost 85.214.41.141:7080, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7081 overlaps with VirtualHost 85.214.41.141:7081, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7080 overlaps with VirtualHost 85.214.41.141:7080, the first has precedence, perhaps you need a NameVirtualHost directive
VirtualHost configuration:
85.214.41.141:80       is a NameVirtualHost
         default server default (/etc/apache2/plesk.conf.d/server.conf:70)
         port 80 namevhost default (/etc/apache2/plesk.conf.d/server.conf:70)
         port 80 namevhost lists (/etc/apache2/plesk.conf.d/server.conf:178)
         port 80 namevhost horde.webmail (/etc/apache2/plesk.conf.d/horde.conf:10)
         port 80 namevhost anturis.monitor (/etc/apache2/plesk.conf.d/vhosts/anturis.monitor.conf:8)
         port 80 namevhost bisam-buecherei.de (/etc/apache2/plesk.conf.d/vhosts/bisam-buecherei.de.conf:122)
         port 80 namevhost h1466911.stratoserver.net (/etc/apache2/plesk.conf.d/vhosts/h1466911.stratoserver.net.conf:108)
         port 80 namevhost mg-pictures.de (/etc/apache2/plesk.conf.d/vhosts/mg-pictures.de.conf:134)
         port 80 namevhost g-edv.eu (/etc/apache2/plesk.conf.d/forwarding/g-edv.eu_httpd.conf:6)
85.214.41.141:443      is a NameVirtualHost
         default server default-85_214_41_141 (/etc/apache2/plesk.conf.d/server.conf:106)
         port 443 namevhost default-85_214_41_141 (/etc/apache2/plesk.conf.d/server.conf:106)
         port 443 namevhost lists (/etc/apache2/plesk.conf.d/server.conf:208)
         port 443 namevhost horde.webmail (/etc/apache2/plesk.conf.d/horde.conf:47)
         port 443 namevhost bisam-buecherei.de (/etc/apache2/plesk.conf.d/vhosts/bisam-buecherei.de.conf:10)
         port 443 namevhost h1466911.stratoserver.net (/etc/apache2/plesk.conf.d/vhosts/h1466911.stratoserver.net.conf:10)
         port 443 namevhost mg-pictures.de (/etc/apache2/plesk.conf.d/vhosts/mg-pictures.de.conf:10)
85.214.41.141:7081     canon7d.de (/etc/apache2/plesk.conf.d/vhosts/canon7d.de.conf:10)
85.214.41.141:7080     betabikes.de (/etc/apache2/plesk.conf.d/vhosts/betabikes.de.conf:8)
85.214.40.62:80        is a NameVirtualHost
         default server glodek-edv.de (/etc/apache2/plesk.conf.d/ip_default/glodek-edv.de.conf:113)
         port 80 namevhost glodek-edv.de (/etc/apache2/plesk.conf.d/ip_default/glodek-edv.de.conf:113)
         port 80 namevhost default (/etc/apache2/plesk.conf.d/server.conf:70)
         port 80 namevhost lists (/etc/apache2/plesk.conf.d/server.conf:178)
         port 80 namevhost horde.webmail (/etc/apache2/plesk.conf.d/horde.conf:10)
         port 80 namevhost basar.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/basar.glodek-edv.de.conf:129)
         port 80 namevhost blog.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/blog.glodek-edv.de.conf:149)
         port 80 namevhost koken.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/koken.glodek-edv.de.conf:127)
         port 80 namevhost letterit.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/letterit.glodek-edv.de.conf:8)
         port 80 namevhost olm.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/olm.glodek-edv.de.conf:8)
         port 80 namevhost osm.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/osm.glodek-edv.de.conf:8)
         port 80 namevhost piwik.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/piwik.glodek-edv.de.conf:149)
         port 80 namevhost region-rhein.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/region-rhein.glodek-edv.de.conf:8)
         port 80 namevhost webmailer.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/webmailer.glodek-edv.de.conf:129)
85.214.40.62:443       is a NameVirtualHost
         default server glodek-edv.de (/etc/apache2/plesk.conf.d/ip_default/glodek-edv.de.conf:10)
         port 443 namevhost glodek-edv.de (/etc/apache2/plesk.conf.d/ip_default/glodek-edv.de.conf:10)
         port 443 namevhost default-85_214_40_62 (/etc/apache2/plesk.conf.d/server.conf:139)
         port 443 namevhost lists (/etc/apache2/plesk.conf.d/server.conf:208)
         port 443 namevhost horde.webmail (/etc/apache2/plesk.conf.d/horde.conf:88)
         port 443 namevhost basar.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/basar.glodek-edv.de.conf:10)
         port 443 namevhost blog.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/blog.glodek-edv.de.conf:10)
         port 443 namevhost koken.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/koken.glodek-edv.de.conf:10)
         port 443 namevhost piwik.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/piwik.glodek-edv.de.conf:10)
         port 443 namevhost webmailer.glodek-edv.de (/etc/apache2/plesk.conf.d/vhosts/webmailer.glodek-edv.de.conf:10)
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server h1466911.stratoserver.net (/etc/apache2/sites-enabled/000-default:1)
         port 80 namevhost h1466911.stratoserver.net (/etc/apache2/sites-enabled/000-default:1)
Syntax OK

In an other thread I found a possible solution for the overlapping vhosts. The problem there seems to be a missing ssl-certificate and that matches with the situation on my server. After copying any other certificate-file as the one with the missing filename the apache starts without any warnings, but after that all websites (the sites from the dedicated ip too) only shows the apache default site ("it works"). I Tried to reconfigure single sites and all sites (/usr/local/psa/admin/bin/httpdmng --reconfigure-all), nothing works.

The server is hosted by STRATO, so there are daily backups. I turned back one week (the problem exists since two days). Then for some hours all works fine but suddenly all the sites on the ip 85.214.41.141 get broken again and shows only plesks default page.

Anyone here to give me a hint what can be the reason for that?

thanks in advance,
Siegbert
 
found a solution and try to write it down. maybe it will help someone ;)

Step 1: /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Code:
Unable to generate the web server configuration file on the host <h1466911.stratoserver.net> because of the following errors:

Template_Exception: Syntax error on line 225 of /etc/apache2/plesk.conf.d/server.conf:
SSLCertificateFile: file '/opt/psa/var/certificates/cert-9naxOT' does not exist or is empty

Step 2: repair the missing certificate
see https://justynshull.com/2013/01/rebuild-missing-ssl-certificates-from-plesk-database/

Step 3: reconfigure again
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
This works but now all sites show apache default-page ("it works") :mad:

Step 4: check the vhost-config file for one site. Ok, plesk reconfigure-all has changed the apache port 80 to nginx port 7080.
There was no nginx on the server...:(:confused:

Step 5: installing nginx with /usr/local/psa/admin/bin/autoinstaller

Step 6: nginx won't start -> it must be enabled first
/usr/local/psa/admin/bin/nginxmng --enable
service nginx start

Everything works! :):):)
 
Back
Top