httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] enabling htaccess in vhosts
Date Mon, 08 Sep 2014 16:15:10 GMT

On 09/06/2014 10:35 AM, Matthew Smith wrote:
> is this correct?  I am not getting the desired behaviour...
>
> DocumentRoot "C:/wwwroot"
>
> #
> # Each directory to which Apache has access can be configured with respect
> # to which services and features are allowed and/or disabled in that
> # directory (and its subdirectories).
> #
> # First, we configure the "default" to be a very restrictive set of
> # features.
> #
> <Directory />
>     Options FollowSymLinks
>     AllowOverride All
>     Order deny,allow
>     Deny from all
> </Directory>

No, that is *not* correct.

You want AllowOverride None in Directory /

What you're looking for is

<Directory "C:/wwwroot">
AllowOverride All
</Directory>

Better yet, put your directives directly into that Directory block and 
don't use .htaccess files at all.

--Rich

>
>
> On Sat, Sep 6, 2014 at 4:19 AM, Pete Houston <ph1@openstrike.co.uk 
> <mailto:ph1@openstrike.co.uk>> wrote:
>
>     No need for Google, just go straight to the source:
>     http://httpd.apache.org/docs/2.4/howto/htaccess.html
>
>     Pete
>
>     On Fri, Sep 05, 2014 at 07:53:07PM -0600, Matthew Smith wrote:
>     > How do I do so?  I googled but can't figure it out.
>
>     --
>     Openstrike - improving business through open source
>     http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107
>
>
>
>
> -- 
> Regards,
> chedder is bedder
>

-- 
Rich Bowen - rbowen@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon


Mime
View raw message