Apache2 question

Alex Dean alex at crackpot.org
Mon Nov 14 09:30:50 MST 2005


On Nov 14, 2005, at 8:55 AM, Miles Beck wrote:

> Hello,
>
> Over the weekend I installed Debian (Sarge) and have set up a minimal
> website and wanted to configure it a little.
>
> What directive is used to change the domain name from
> www.domainname.com/apache2-default/ to www.domainname.com.
>
> By default I dont want it to show the apache2-default directoy.
>
> Thanks
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

I bet what is happening is this :
  - Your document root is /var/www
  - The default index page in that directory is a redirect to the  
apache2-default subdirectory.  It's displaying a message telling you  
apache is set up correctly and such.

If you replace that index file with your own, you'll no longer get  
sent to the apache2-default subdir.

You can get more information on setting up your own virtual hosts  
here : http://httpd.apache.org/docs/2.0/vhosts/
Apache configuration makes a lot of sense once you get used to it,  
but like most things it can take a little getting used to.  The  
O'Reilly book 'Apache Cookbook' is a really handy tutorial on how to  
set up lots of common stuff (virtual hosts, logging, SSL certs,  
etc).  http://www.oreilly.com/catalog/apacheckbk/index.html

alex


More information about the PLUG-discuss mailing list