[Novalug] virtual hosts

Kevin Cole dc.loco at gmail.com
Mon Jan 14 15:33:27 EST 2008


On Jan 13, 2008 4:43 PM, Nino Pereira <pereira at speakeasy.net> wrote:
> Thanks to all who answered my questions on how to
> make my server serve different web pages. But, I still
> have a problem.
>
> On my Debian-Ubuntu system, which may be more complicated
> than it needs to be, I understood that every virtual host
> has a set of directives in /etc/apache2/sites-enabled.
> I have two. Each of these points to the appropriate
> directory. In my case, the file 'ecopulse' points to
> var/www/ecopulse and the file 'rodrigues-pereira' to
> /var/www/rodrigues-pereira. The two files are identical,
> except that one has 'rodrigues-pereira' where the other
> has 'ecopulse'.
>
> When I test the correctness of this setup, with
> /usr/apache2 -t
> I get a warning: NameVirtualHost www.rodtigues-pereira.com:0
> has no virtual hosts.
>
> Do you see something obvious that I'm doing wrong?

While I don't think it affects your problem, yes... Perhaps it's mere
aesthetics, but, in the "use as intended" department: I once again
recommend putting those files in /etc/apache2/sites-available and then
either using the "a2ensite" command or creating the symbolic link by
hand.  It's not critical, but that's the model you're working within.
 See also:  a2dissite,  a2enmod  and  a2dismod.

-- 
Ubuntu Linux DC LoCo
Washington, DC
http://dc.ubuntu-us.org/



More information about the Novalug mailing list