logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2 virtualhosts ?
Author
verbindingsfout



Joined: 20 May 2013
Posts: 3
Location: Netherlands

PostPosted: Mon 20 May '13 21:12    Post subject: Apache 2 virtualhosts ? Reply with quote

Hey all,

i've got a problem with my apache2 virtualhosts configuration.

There are a few sites in /etc/apache2/sites-avaiable/ (www.tvbeugelsenmeer.nl, www.lauravanderheide.nl)

They are enabled with a2ensite so there is a symlink in /etc/apache2/sites-enabled/
now when i do a # /etc/inint.d/apache2 reload
i get the following output
Code:

Reloading web server config: apache2[Mon May 20 20:52:17 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Mon May 20 20:52:17 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Mon May 20 20:52:17 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Mon May 20 20:52:17 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
.


but what really counts is the inside of my www.lauravanderheiden.nl and www.tvbeugelsenmeer.nl files which is listed here:

www.tvbeugelsenmeer.nl
Code:

<VirtualHost *:80>
        ServerAdmin test@hotmail.com
        ServerName  www.tvbeugelsenmeer.nl
        ServerAlias tvbeugelsenmeer.nl

        # Indexes + Directory Root.
        DirectoryIndex index.html index.php
        DocumentRoot /home/tvbeugelsenmeernl/

</VirtualHost>


www.lauravanderheide.nl
Code:

<VirtualHost *:80>
        ServerAdmin test@hotmail.com
        ServerName  www.lauravanderheide.nl
        ServerAlias lauravanderheide.nl

        # Indexes + Directory Root.
        DirectoryIndex index.html index.php
        DocumentRoot /home/lauravanderheidenl/

</VirtualHost>



So why do i get these errors?
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Mon 20 May '13 23:53    Post subject: Reply with quote

Possibly because the listening IP is stated somewhere else.
Possibly in your main config.

Try replacing the * with the actual IP address of the web server.
Back to top


Reply to topic   Topic: Apache 2 virtualhosts ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache