List Info

Thread: server help




server help
country flaguser name
Australia
2007-10-05 03:48:40
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 webmasterdummy-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://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


Re: server help
user name
2007-11-05 08:14:32
On Oct 5, 2007 3:48 AM, Michael Christie <michaelthebushtelegraph.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://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


Re: server help
country flaguser name
United States
2007-11-06 04:34:22
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://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )