RE: question about Apache



Hi Derek,

Almost got it. In this VirtualHost though I am getting asked for more info
does this need to be an alias to moin's cgi file? What I am trying to
accomplish here is when you type www.blindscanner.dyndns.org you get the
Moin Moin page. Here is the sample of the VirtualHost it doesn't like.

<VirtualHost>
ServerName: www.blindscanner.dyndns.org
DocumentRoot /usr/share/moin/server/moin.cgi
</VirtualHost>


Scott Berry
Email: sberry@xxxxxxxxxxx

-----Original Message-----
From: ubuntu-users-bounces@xxxxxxxxxxxxxxxx
[mailto:ubuntu-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Derek Broughton
Sent: Friday, February 29, 2008 9:58 AM
To: ubuntu-users@xxxxxxxxxxxxxxxx
Subject: Re: question about Apache

Scott Berry wrote:

Hello there,

I have a question about Apache I am unsure of.
When I run /etc/init.d/apache2 restart I get the following message:

root@Yellobo:~# /etc/init.d/apache2 restart

* Restarting web server apache2

[Fri Feb 29 05:25:42 2008] [warn] NameVirtualHost *:0 has no VirtualHosts

[Fri Feb 29 05:25:55 2008] [warn] NameVirtualHost *:0 has no VirtualHosts

You know this is just a warning, right? I had it for years. Turns out the
simple fix is to make sure you only have ONE "NameVirtualHost" statement in
your config files.

NameVirtualHost *:80

That _should_ be "NameVirtualHost *" - but, of course you don't need it and
don't want it if you have another one.

<VirtualHost *:80>

That should _also_ not specify the port.

ServerName www.pilotalk.dyndns.org
ServerAlias pilotalk.dyndns.org

This is the part that is doing the real work - by checking the host name on
the request headers, and verifying that it's the name of the VirtualHost/

<VirtualHost *:80>

And the same again...

<Directory /var/www/>

HEY! You can't do that! If you want /var/www to be defined differently for
different VirtualHosts you have to define it _inside_ the <VirtualHost>
tag.

</VirtualHost>

And that's no use because you already closed that <VirtualHost> tag.

--
derek


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008
8:18 AM


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008
8:18 AM



--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Apache virtualhost issue
    ... > ServerName blah.domain.com ... VirtualHost completely, no wonder access is denied, if there's ... nothing apache can deliver. ... #bofh excuse 81: Please excuse me, I have to circuit an AC ...
    (comp.os.linux.networking)
  • Re: Apache Virtualhost Config
    ... I am trying to configure an Apache 2.0 and PHP setup using a virtualhost. ... ServerName crm.localhost ...
    (alt.php)
  • configured my apache to take 2 VirtualHost !!!
    ... I have configured my apache to take 2 VirtualHost (on my first machine ... But when i try to use just servername example from ...
    (alt.php)
  • RE: Apache Virtual Host
    ... you can also put an Include directive in the VirtualHost block. ... Subject: Apache Virtual Host ... have to load your default server as a vhost as well or you won't be able to ...
    (RedHat)
  • Re: [users@httpd] Re: cgi-bin stopped working in apache ?! please help SOLVED
    ... so now, when Apache starts, it "includes" the configuration of your new ... (It is the new default because it is now the first defined virtual host in ... terms to ServerAlias and that is what screwed me up. ... So whenever a Virtual Host "needs" a parameter value, and it is not explicitly defined in his own <VirtualHost> section, it will use the default parameter value as defined before the "NameVirtualHost" line. ...
    (Debian-User)