Re: Troubleshooting namebased virtual websites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



results of apache2ctl -S are:

apache2: Could not reliably determine the server's fully qualified domain name, using ubuntuserver.homeunix.com for ServerName
[Tue Jul 13 14:26:22 2010] [warn] VirtualHost 2150sunshine.homeip.net:0 overlaps with VirtualHost ubuntuserver.homeunix.com:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Jul 13 14:26:22 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Jul 13 14:26:22 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
192.168.0.110:*        homeip.net (/etc/apache2/sites-enabled/2150sunshine.homeip.net:1)
127.0.0.1:*            homeunix.com (/etc/apache2/sites-enabled/ubuntuserver.homeunix.com:1)
24.3.xxx.xxx:*         homeunix.com (/etc/apache2/sites-enabled/homecontrol.homeunix.com:1)

So, I think this is telling me that I have a name conflict......not sure where it is occuring or how to straighten it out....Suggestions?
My first though is to make sites-available/default a virtual host by creating a configuration using the following template:

<VirtualHost *>
  ServerName ubuntuserver.homeunix.com
  ServerAlias http://ubuntuserver.homeunix.com
  ServerAdmin webmaster@localhost

# Indexes + Directory Root
  DirectoryIndex index.htm
  DocumentRoot /var/www/ubuntuserver.homeunix.com/htdocs
# Logfiles
  ErrorLog /var/www/ubuntuserver.homeunix.com/logs/error.log
  CustomLog /var/www/ubuntuserver.homeunix.com/logs/access.log combined

<Directory /var/www/ubuntuserver.homeunix.com/htdocs>
  Options Indexes FollowSymLinks
   AllowOverride None
   Order deny,allow
</Directory>
</VirtualHost>

Comments?
Thank you
-J




On Tue, Jul 13, 2010 at 1:23 PM, Eric Covener <covener@xxxxxxxxx> wrote:
On Tue, Jul 13, 2010 at 1:06 PM, John Hudak <jjhudak@xxxxxxxxx> wrote:

> Perhaps I have a rogue domain name running around somewhere.....in some
> config file...

apache2ctl -S

> So, the *only* place I should have the FQDNs that I want to serve are in my
> site-enabled 'configuration file' that corresponds to each FQDN? Correct?
> and default should not contain any of the FQDNs, Correct?

Yes, configure the ServerName/ServerAlias (that your browser will use)
in your individual vhosts if you expect requests to be routed there.




--
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux