# Question mark in folder name

**URL:** <https://www.ruby-forum.com/t/question-mark-in-folder-name/200845>\
**Category:** NGINX\
**Created:** [December 23, 2010, 7:09am UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845 "2010-12-23T07:09:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [December 23, 2010, 7:09am UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845/1 "2010-12-23T07:09:23Z")

</div>

Hello,

I’ve noticed a strange issue using nginx 0.8.54 where a question mark in  
the folder name will cause 404 errors regardless of it existing or not.

If I manually replace the ? with the encoded %3F it will work fine…

Thanks

Posted at Nginx Forum:

> **[question mark in folder name](https://forum.nginx.org/read.php?2,160643,160643#msg-160643)**
>
> Hello, I've noticed a strange issue using nginx 0.8.54 where a question mark in the folder name will cause 404 errors regardless of it existing or not. If I manually replace the ? with the encoded %3F it will work fine... Thanks

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [December 23, 2010, 12:36pm UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845/2 "2010-12-23T12:36:53Z")

</div>

On Thu, Dec 23, 2010 at 1:07 PM, eiji-gravion [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hello,
> 
> I’ve noticed a strange issue using nginx 0.8.54 where a question mark in  
> the folder name will cause 404 errors regardless of it existing or not.
> 
> If I manually replace the ? with the encoded %3F it will work fine…

anything after question mark is query string.

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [December 23, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845/3 "2010-12-23T12:37:31Z")

</div>

On Thu, Dec 23, 2010 at 6:34 PM, Edho P Arief [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

and the nginx autodirectory forgot to escape that character.

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [December 23, 2010, 1:37pm UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845/4 "2010-12-23T13:37:56Z")

</div>

On Thu, Dec 23, 2010 at 7:34 PM, Maxim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hello!

whoops, I forgot to check with latest nginx. Sorry.

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [December 23, 2010, 1:36pm UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845/5 "2010-12-23T13:36:04Z")

</div>

Hello!

On Thu, Dec 23, 2010 at 06:36:29PM +0700, Edho P Arief wrote:

> > anything after question mark is query string.
> 
> and the nginx autodirectory forgot to escape that character.

> **[\[PATCH\] Autoindex: escape '?' in file names](http://mailman.nginx.org/pipermail/nginx-devel/2010-February/000112.html)**

Maxim D.

---

<div class="post-metadata">

**Author:** ![eiji-gravion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@eiji-gravion](https://www.ruby-forum.com/u/eiji-gravion)\
**Post date:** [December 23, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845/6 "2010-12-23T13:58:02Z")

</div>

Hello!

On Thu, Dec 23, 2010 at 07:36:24PM +0700, Edho P Arief wrote:

> On Thu, Dec 23, 2010 at 7:34 PM, Maxim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hello!
> 
> whoops, I forgot to check with latest nginx. Sorry.

No, not really. This patch still actual (not present in latest  
nginx).

Maxim D.
