You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "@lbutlr" <kr...@kreme.com> on 2018/06/11 18:34:36 UTC
[users@httpd] Apache 2.4 and DirectoryIndex and htaccess
I have a working webroot, and it has an index.php file. In httpd.conf I havre DirectoryIndex for /usr/local/www set to “index.php index.html"
I create a folder under the webroot named foo and I put an index.html file in the folder.
I can access the files directly, but if I access the folder, I get a permission error.
If I created foo/.htaccess with the content “foo goes here” and load the directory or the file, I get a server error (so .htaccess isn’t being ignored by an AllowOverrid none upstream).
If I change the .htaccess to read
DirectoryIndex index.html
I can access the file directly, but I still get a permission error if I access the directory <http://www.example.com/foo/>
“Forbidden You don't have permission to access /renna/ on this server.”
The only thing in the http-error.log is:
[Mon Jun 11 12:26:28.390150 2018] [ssl:info] [pid 34433] [client xx.xx.xx.xx:56493] AH01964: Connection to child 9 established …
Httpd-access.log shows:
xx.xx.xx.xx - - [11/Jun/2018:12:26:28 -0600] "GET /foo/ HTTP/1.1" 403 215 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36"
xx.xx.xx.xx - - [11/Jun/2018:12:26:28 -0600] "GET /favicon.ico HTTP/1.1" 200 34494 "https://www.example.com/foo/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36”
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Apache 2.4 and DirectoryIndex and htaccess
Posted by LuKreme <kr...@kreme.com>.
On Jun 13, 2018, at 11:50, Frank Gingras <th...@apache.org> wrote:
>
> That isn't the relevant error from the error log. We need that entry to help you.
That is the ONLY thing logged in the error log.
> A 403 as such is always logged in the error log, perhaps with the exception of cases when you use a RewriteRule with [F], or a third-party module to limit access.
I’ll check on that. For now I’ve moved the directory to a top-level directory and pointed a subdomain at it.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Apache 2.4 and DirectoryIndex and htaccess
Posted by Frank Gingras <th...@apache.org>.
That isn't the relevant error from the error log. We need that entry to
help you.
A 403 as such is always logged in the error log, perhaps with the exception
of cases when you use a RewriteRule with [F], or a third-party module to
limit access.
On Wed, Jun 13, 2018 at 1:37 PM @lbutlr <kr...@kreme.com> wrote:
> On 13 Jun 2018, at 11:25, Frank Gingras <th...@apache.org> wrote:
> > What does the error log say, exactly?
>
> From the original message:
> > The only thing in the http-error.log is:
> >
> > [Mon Jun 11 12:26:28.390150 2018] [ssl:info] [pid 34433] [client
> xx.xx.xx.xx:56493] AH01964: Connection to child 9 established …
> >
> > Httpd-access.log shows:
> >
> > xx.xx.xx.xx - - [11/Jun/2018:12:26:28 -0600] "GET /foo/ HTTP/1.1" 403
> 215 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36
> (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36"
> > xx.xx.xx.xx - - [11/Jun/2018:12:26:28 -0600] "GET /favicon.ico HTTP/1.1"
> 200 34494"https://www.example.com/foo/" "Mozilla/5.0 (Macintosh; Intel
> Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/67.0.3396.79 Safari/537.36”
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
[users@httpd] Re: Apache 2.4 and DirectoryIndex and htaccess
Posted by "@lbutlr" <kr...@kreme.com>.
On 13 Jun 2018, at 11:25, Frank Gingras <th...@apache.org> wrote:
> What does the error log say, exactly?
From the original message:
> The only thing in the http-error.log is:
>
> [Mon Jun 11 12:26:28.390150 2018] [ssl:info] [pid 34433] [client xx.xx.xx.xx:56493] AH01964: Connection to child 9 established …
>
> Httpd-access.log shows:
>
> xx.xx.xx.xx - - [11/Jun/2018:12:26:28 -0600] "GET /foo/ HTTP/1.1" 403 215 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36"
> xx.xx.xx.xx - - [11/Jun/2018:12:26:28 -0600] "GET /favicon.ico HTTP/1.1" 200 34494"https://www.example.com/foo/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36”
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Apache 2.4 and DirectoryIndex and htaccess
Posted by Frank Gingras <th...@apache.org>.
What does the error log say, exactly?
On Wed, Jun 13, 2018 at 1:20 PM @lbutlr <kr...@kreme.com> wrote:
> No ideas?
>
> On 11 Jun 2018, at 12:34, @lbutlr <kr...@kreme.com> wrote:
> > I can access the files directly, but if I access the folder, I get a
> permission error.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
[users@httpd] Re: Apache 2.4 and DirectoryIndex and htaccess
Posted by "@lbutlr" <kr...@kreme.com>.
No ideas?
On 11 Jun 2018, at 12:34, @lbutlr <kr...@kreme.com> wrote:
> I can access the files directly, but if I access the folder, I get a permission error.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org