Re: Apache2 question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Michael Sammartano
Date:  
To: Main PLUG discussion list
Subject: Re: Apache2 question
I think what you are asking is how to change the default directory from
the apache root directory to your domain. This is simple. Here is a copy
of mine. It is under the Global settings in httpd.conf


# forbid access to the entire filesystem by default
<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>



#This will change the default directory to whatever you want. Note the
permissions.

<Directory /srv/www/htdocs/volinaz>
    Options None
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>


# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>


Hope this helps.
Mike


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 -
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>


--
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss