You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Christie <mi...@thebushtelegraph.net> on 2007/10/05 10:48:40 UTC
[users@httpd] server help
Hi all
I have Apache 2xx installed on to freebsd 6 with a number of virtual
host. what I am finding when the default server name ( elmo.xxx.com.au)
is put in to my browser i am not seeing the default web site in the
document root /usr/local/www/data . I do see one of the virtual hosts
web sites. I have try ed removing one of the virtual hosts, the default
server displays one of the other web sites. I would say this would be
configuration. Can some one please advise me what I may be doing wrong
here and what i should be l adding to the httpd.conf to stop this and
make the default server display the web site in user/local
thank you
Michael
Host config
# Use name-based virtual hosting.
#
NameVirtualHost 203.x.x.x:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog /var/log/dummy-host.example.com-error_log
# CustomLog /var/log/dummy-host.example.com-access_log common
#</VirtualHost>
Include etc/apache2/Includes/*.conf
<VirtualHost 203.x.x.x:80>
DocumentRoot /home/swcc/www/mam
ServerName www.xxx.org.au
<Directory "/home/xxx/www">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost 203.x.x.x:80>
DocumentRoot /home/thebush/www
ServerName www.xxx.net
<Directory "/home/xxx/www">
allow from all
Options +Indexes
</Directory>
ServerAlias xxxxxx.net
</VirtualHost>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] server help
Posted by lists <li...@jaqui-greenlees.net>.
Michael Christie wrote:
> Hi all
>
> I have Apache 2xx installed on to freebsd 6 with a number of virtual
> host. what I am finding when the default server name ( elmo.xxx.com.au)
> is put in to my browser i am not seeing the default web site in the
> document root /usr/local/www/data . I do see one of the virtual hosts
> web sites. I have try ed removing one of the virtual hosts, the default
> server displays one of the other web sites. I would say this would be
> configuration. Can some one please advise me what I may be doing wrong
> here and what i should be l adding to the httpd.conf to stop this and
> make the default server display the web site in user/local
>
You might also want to check your system time, it is out by a month
according to the date of your message and the date it arrived on the list.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] server help
Posted by Joshua Slive <jo...@slive.ca>.
On Oct 5, 2007 3:48 AM, Michael Christie <mi...@thebushtelegraph.net> wrote:
> Hi all
>
> I have Apache 2xx installed on to freebsd 6 with a number of virtual
> host. what I am finding when the default server name ( elmo.xxx.com.au)
> is put in to my browser i am not seeing the default web site in the
> document root /usr/local/www/data . I do see one of the virtual hosts
> web sites. I have try ed removing one of the virtual hosts, the default
> server displays one of the other web sites. I would say this would be
> configuration. Can some one please advise me what I may be doing wrong
> here and what i should be l adding to the httpd.conf to stop this and
> make the default server display the web site in user/local
This is discussed very explicitly in the docs:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html#using
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org