You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ve...@michvhf.com on 2016/06/23 20:55:18 UTC

[users@httpd] Files and Require

I just upgraded from 2.0.55 to 2.4.20.  I'm getting a syntax error on
startup on this:

<Files ~ "^\.ht">
    Require all denied
</Files>

in the main configuration.  Everything I've found in the docs say this is
how it's done.  Is this supposed to be in a container or something?

Thanks!
Vince.
-- 
  Michigan VHF Corp.   http://www.nobucks.net/   http://www.CDupe.com/
          http://www.foggymist.com   The Foggy Mist Emporium


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Files and Require

Posted by ve...@michvhf.com.
On Thu, June 23, 2016 5:06 pm, Eric Covener wrote:
> On Thu, Jun 23, 2016 at 4:55 PM,  <ve...@michvhf.com> wrote:
>>
>> I just upgraded from 2.0.55 to 2.4.20.  I'm getting a syntax error on
>> startup on this:
>>
>> <Files ~ "^\.ht">
>>     Require all denied
>> </Files>
>>
>> in the main configuration.  Everything I've found in the docs say this
>> is
>> how it's done.  Is this supposed to be in a container or something?
>>
>
> Do you have mod_authz_core loaded?

No, it doesn't look like it.

Vince.
-- 
  Michigan VHF Corp.   http://www.nobucks.net/   http://www.CDupe.com/
          http://www.foggymist.com   The Foggy Mist Emporium


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Files and Require

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jun 23, 2016 at 4:55 PM,  <ve...@michvhf.com> wrote:
>
> I just upgraded from 2.0.55 to 2.4.20.  I'm getting a syntax error on
> startup on this:
>
> <Files ~ "^\.ht">
>     Require all denied
> </Files>
>
> in the main configuration.  Everything I've found in the docs say this is
> how it's done.  Is this supposed to be in a container or something?
>

Do you have mod_authz_core loaded?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


re: [users@httpd] Files and Require

Posted by Jim Walls <ji...@k6ccc.org>.
Looking at my own config file, you have three extra characters.  No ~ after 
Files, and no ^\ before .ht.
 Note that this is on a Windows server and I am aware that there are some 
differences between Windows and the various unix variants. 
  
 Jim
  
  
  
  

----------------------------------------
 From: vev@michvhf.com
Sent: Thursday, June 23, 2016 1:55 PM
To: users@httpd.apache.org
Subject: [users@httpd] Files and Require   

I just upgraded from 2.0.55 to 2.4.20. I'm getting a syntax error on
startup on this:

<Files ~ "^\.ht">
Require all denied
</Files>

in the main configuration. Everything I've found in the docs say this is
how it's done. Is this supposed to be in a container or something?

Thanks!
Vince.
--
Michigan VHF Corp. http://www.nobucks.net/ http://www.CDupe.com/
http://www.foggymist.com The Foggy Mist Emporium

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org