You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/02/27 18:29:28 UTC

[Bug 59086] New: Brackets in DocumentRoot and Directory not supported

https://bz.apache.org/bugzilla/show_bug.cgi?id=59086

            Bug ID: 59086
           Summary: Brackets in DocumentRoot and Directory not supported
           Product: Apache httpd-2
           Version: 2.4.17
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
          Assignee: bugs@httpd.apache.org
          Reporter: jonathan.huet@gmail.com

Hello,
I'm setting a new virtual host in my local apache server. The name of the
folder where I'm pointing  is "[ Client ] Project"
But when I try to access I have a "Forbidden You don't have permission to
access / on this server."

This is part of the httpd configuration, where I set those variables:

<VirtualHost localhost>
<Directory "/Users/me/web/[ Client ] Project">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName localhost
ServerAlias localhost tito 127.0.0.1
ScriptAlias /cgi-bin/ "/Applications/AMPPS/www/cgi-bin/"
DocumentRoot "/Users/me/web/[ Client ] Project"
ErrorLog "/Applications/AMPPS/apache/logs/error_log"
CustomLog "/Applications/AMPPS/apache/logs/access.log" combined
</VirtualHost>

I have tried so many combinations of naming the folder and my conclusion is
that if there is "open square brackets+something in the middle+close square
brackets"I always have the forbidden message.
Here is all the combination of folder naming that I have tried and the results
if it can help (logically, after each folder name change I have changed
httpd.conf + restarted the server):
"[ Client ] Project" => KO
"] Client [ Project" => OK
"[ Client  Project" => OK
" Client ] Project" => OK
"[ Client [ Project" => OK
"[C] Project" => KO
"[ ] Project" => KO
"[] Project" => OK
(The last two examples are the most strange one. If brackets are facing without
nothing in the middle, no problem. But if something is put in the middle then
KO )

Hopping that may help: What I'm thinking now is that there is maybe a conflict
with IPv6, that uses brackets, but that is strange because, where I'm using
brackets, it's not a place to use IPv6

Thanks



PD: My OsX version wasn't in the list: 10.11

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 59086] Brackets in DocumentRoot and Directory not supported

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59086

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Christophe JAILLET <ch...@wanadoo.fr> ---
This is explained in https://httpd.apache.org/docs/2.4/mod/core.html#directory.

This does not work because your path is interpreted as a regular expression
(i.e. "You may also use [] character ranges" in the doc)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59086] Brackets in DocumentRoot and Directory not supported

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59086

Mike Rumph <mi...@oracle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Mike Rumph <mi...@oracle.com> ---
Brackets are also used in globbing.

A check for this is done in the apr_fnmatch_test function in APR in
strings/apr_fnmatch.c.

The apr_fnmatch_test function is called several times within server/core.c and
server/config.c.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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