You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matthew Smith <ch...@gmail.com> on 2014/09/06 03:53:07 UTC
[users@httpd] enabling htaccess in vhosts
How do I do so? I googled but can't figure it out.
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.theartoflovingcatsanddogsdotcom
DocumentRoot "C:/wwwroot"
ServerName theartoflovingcatsanddogsdotcom
ErrorLog "logs/dummy-host2.theartoflovingcatsanddogsdotcom-error.log"
CustomLog "logs/dummy-host2.theartoflovingcatsanddogsdotcom-access.log"
common
</VirtualHost>
Re: [users@httpd] enabling htaccess in vhosts
Posted by Matthew Smith <ch...@gmail.com>.
On Mon, Sep 8, 2014 at 10:15 AM, Rich Bowen <rb...@rcbowen.com> wrote:
> <Directory "C:/wwwroot">
> AllowOverride All
> </Directory>
>
Thank you for the help. What about vhosts? DO I need to add it there as
well? Still getting an error.
--
Regards,
chedder is bedder
Re: [users@httpd] enabling htaccess in vhosts
Posted by Rich Bowen <rb...@rcbowen.com>.
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
> <ma...@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
Re: [users@httpd] enabling htaccess in vhosts
Posted by Matthew Smith <ch...@gmail.com>.
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>
On Sat, Sep 6, 2014 at 4:19 AM, Pete Houston <ph...@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
Re: [users@httpd] enabling htaccess in vhosts
Posted by Pete Houston <ph...@openstrike.co.uk>.
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
Re: [users@httpd] enabling htaccess in vhosts
Posted by fedora <fe...@ayni.com>.
Try with
AllowOverride option-you-want-to-allow-in.htaccess
suomi
On 2014-09-06 03:53, Matthew Smith wrote:
> How do I do so? I googled but can't figure it out.
>
>
> <VirtualHost *:80>
> ServerAdmin webmaster@dummy-host2.theartoflovingcatsanddogsdotcom
> DocumentRoot "C:/wwwroot"
> ServerName theartoflovingcatsanddogsdotcom
> ErrorLog "logs/dummy-host2.theartoflovingcatsanddogsdotcom-error.log"
> CustomLog
> "logs/dummy-host2.theartoflovingcatsanddogsdotcom-access.log" common
> </VirtualHost>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org