# Problem with nginx/0.8.54 and alias

**URL:** <https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301>\
**Category:** NGINX\
**Created:** [February 17, 2011, 2:18pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301 "2011-02-17T14:18:57Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 20, 2011, 3:50pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/21 "2011-02-20T15:50:33Z")

</div>

On 2/20/11 6:49 AM, Maxim D. wrote:

> > > 
> > 
> > attached from both the sent folder from my client and that of the  
> > Google web client. They look OK to me.
> 
> Really. Number of spaces before and after is garbled.

I see that now. Once again specificity is lacking. Your words were “Just  
a side note: you mail client seems to unable to handle   
correctly as well.”. I was looking at the string itself, and its  
contents seem to be handled normally. I would have formatted your  
comment thus:

Just a side note: you mail client seems to unable to handle " "  
correctly as well.

That would have directed a dummy like myself to look at the spacing.  
Again, I can’t read your mind.

This does not affect a configuration such as

location ~ ^/phpmyadmin/(?.+.php)$ {  
fastcgi\_pass 127.0.0.1:9000;  
fastcgi\_param SCRIPT\_FILENAME  
/var/www/monsite.fr/phpMyAdmin/$NAME;  
include fastcgi\_params;  
}

Or at least not in my testing here.

Also, in my testing here the following string:

blah

rendered with spaces.

The problem is likely a charset issue and appears to be a bug in the  
conversion. You use “us-ascii” and I use “ISO-8859-1”.

> […]
> 
> Maxim D.
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–  
Jim O.

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 20, 2011, 6:02pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/22 "2011-02-20T18:02:17Z")

</div>

On 2/20/11 6:49 AM, Maxim D. wrote:

> > > 
> > 
> > attached from both the sent folder from my client and that of the  
> > Google web client. They look OK to me.
> 
> Really. Number of spaces before and after is garbled.

Please note that my earlier message regarding this rendered correctly in  
the forum. Further investigation leads me to understand that it’s not a  
charset issue at all. Even after switching to us-ascii for sending and  
display, turning off flowed format, replying multiple times using plain  
text and (gasp) HTML mail, it only happened with _your_ email. I even  
tried using gmail’s web interface and all worked well.

Back to the case at hand.

The problem is that when the “Quote” function is used, it has to parse  
HTML, strip out the tags, and format the information properly.

Evidently because the less than and greater than signs are used in HTML  
the charset entities for these symbols - “\<” for less than and “\>”  
are used when such symbols actually appear in the text.

The quote function decodes those symbols correctly when the traditional  
“forum quoting” system is used but that involves using bbcode and the  
formatting will certainly suffer. That would be an unacceptable  
solution. I have chosen to use a quoting system that looks more like  
that of an email. Unfortunately, those characters are being stripped  
when using such quoting. I have put in a support request with Phorum’s  
developers and will attempt to look at the code myself.

> […]
> 
> Maxim D.
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–  
Jim O.

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 20, 2011, 9:35pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/23 "2011-02-20T21:35:27Z")

</div>

Hi Maxim,

On 19/02/2011 00:06, Maxim D. wrote:

> …  
> Sorry for being rude, but I’ve noticed the issue and commented  
> according to it’s nature. I indeed consider anything which causes  
> data corruption to be awful (and this isn’t the first data  
> corruption issue with forum, unfortunately). I also consider  
> nginx proxy cache to be awful for similar reasons - hope this will  
> help you to feel yourself better. 😉

Could you please elaborate on what you mean by the proxy cache being  
‘awful’ for ‘similar reasons’?

Thanks,

Marcus.

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 21, 2011, 2:20am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/24 "2011-02-21T02:20:01Z")

</div>

Hi,

On 21/02/2011 01:32, Maxim D. wrote:

> On Sun, Feb 20, 2011 at 10:33:25PM +0200, Eugaia wrote:
> 
> > Could you please elaborate on what you mean by the proxy cache being  
> > ‘awful’ for ‘similar reasons’?  
> > There is more than one issue with proxy cache, with more than one  
> > leading to data corruption and/or protocol violation (and again  
> > data corruption as a result).  
> > Are there any known issues that you know of that haven’t been fixed by  
> > any of the patches you’ve made available?

Thanks,

Marcus.

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 21, 2011, 12:33am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/25 "2011-02-21T00:33:23Z")

</div>

Hello!

On Sun, Feb 20, 2011 at 10:33:25PM +0200, Eugaia wrote:

> > 
> 
> Could you please elaborate on what you mean by the proxy cache being  
> ‘awful’ for ‘similar reasons’?

There is more than one issue with proxy cache, with more than one  
leading to data corruption and/or protocol violation (and again  
data corruption as a result).

Maxim D.

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 21, 2011, 12:06pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/26 "2011-02-21T12:06:07Z")

</div>

Hello!

On Mon, Feb 21, 2011 at 03:17:47AM +0200, Eugaia wrote:

> by any of the patches you’ve made available?  
> Yes. This includes proxy\_cache\_bypass/proxy\_no\_cache problem at  
> least.

Maxim D.

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [March 14, 2011, 2:19am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/27 "2011-03-14T02:19:28Z")

</div>

## Maxim D. Wrote:

> Hello!

[…]

> And as far as this indeed affects mailing list and  
> forum,  
> including people in this particular thread (note  
> several messages  
> with incorrect configs due to being  
> stripped) - I don’t  
> consider private reporting to be better way to go.

This issue appears to be fixed as you can see in the above being quoted  
correctly. Feel free to try it out yourself and let me know if you can  
find other errors in this regard.

[…]

> Maxim D.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,176110,182706#msg-182706](http://forum.nginx.org/read.php?2,176110,182706#msg-182706)

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [March 14, 2011, 2:21am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/28 "2011-03-14T02:21:59Z")

</div>

## Maxim D. Wrote:

> Hello!

[…]

> Probably you have ancient PCRE library. Try  
> (?P) form  
> which is supported since PCRE 4.0.

This one now quotes properly as well.

> [Server names](http://nginx.org/en/docs/http/server_names.html#re)  
> gex\_names
> 
> Maxim D.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,176110,182707#msg-182707](http://forum.nginx.org/read.php?2,176110,182707#msg-182707)

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [March 14, 2011, 2:27am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/29 "2011-03-14T02:27:00Z")

</div>

That seemed to be a bit premature . They quote properly in the forum but  
are sent out incorrectly in the emails.

Will look into this.

Posted at Nginx Forum:

> **[Re: Problem with nginx/0.8.54 and alias](https://forum.nginx.org/read.php?2,176110,182708#msg-182708)**
>
> Hello, I try to set up a simple alias louse find out how. I read many articles. I almost try everything but nothing works. Currently I have this code in the file /etc/nginx/sites-available/default. \[code\] server { listen 80; root /var/www/

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [February 21, 2011, 10:38pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/30 "2011-02-21T22:38:05Z")

</div>

Most of the issues described here have been suffered by many other  
open source projects, and are essentially solved problems. So I would  
like to re-introduce the idea of moving project management of nginx to  
one of the popular open source project hosing sites.

Since I believe Igor uses Subversion, I immediately think of  
SourceForge or Google Code as reasonable choices. We could then  
integrate forums, mailing lists, wikis, bug-tracking, etc. over time.  
The forum/email/spam issues are taken care of mostly automatically by  
such services.

Of course Igor, Maxim, agentzh, and the other major contributors would  
have to be the ones to make such a choice of hosting services. I  
imagine whichever open source hosting service has the best Russian  
language support (and good connectivity to Russia) would be a good  
choice. Are there any European or Russian equivalents to SourceForge  
out there that have good internationalization options? The “automatic”  
integration of Google Translate might make Google code attractive, but  
using Subversion (or any SCM) over a high-latency link such as  
Russia\<-\>USA can be painful.

I personally would be willing to help with or lead migration of  
Subversion repositories, wiki pages, past release files, forum data,  
and documentation to any services chosen. Unfortunately, I speak only  
English and very poor German, which might limit the aid I can offer.

–  
RPM

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [March 14, 2011, 1:35pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/31 "2011-03-14T13:35:19Z")

</div>

## Igor S. Wrote:

[…]

> Use late 0.8.x with this configuration:
> 
> location ~ ^/phpmyadmin/(?.+.php)$ {  
> fastcgi\_pass 127.0.0.1:9000;  
> fastcgi\_param SCRIPT\_FILENAME

> From my tests this is not only quoted correctly but formatted correctly  
> in email.

> /var/www/monsite.fr/phpMyAdmin/$NAME;  
> include fastcgi\_params;  
> }
> 
> –  
> Igor S.  
> [Igor Sysoev](http://sysoev.ru/en/)

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,176110,182782#msg-182782](http://forum.nginx.org/read.php?2,176110,182782#msg-182782)

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [March 14, 2011, 1:43pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/32 "2011-03-14T13:43:29Z")

</div>

## Jim O. Wrote:

> This one now quotes properly as well.

Now it appears to be formatted correctly.

> > 
> 
> [Server names](http://nginx.org/en/docs/http/server_names.html#re)
> 
> > gex\_names
> > 
> > Maxim D.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,176110,182785#msg-182785](http://forum.nginx.org/read.php?2,176110,182785#msg-182785)

---

<div class="post-metadata">

**Author:** ![Amanager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Amanager](https://www.ruby-forum.com/u/Amanager)\
**Post date:** [March 18, 2011, 8:39pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301/33 "2011-03-18T20:39:21Z")

</div>

Jim

Nice to see that you seem to have resolved the data eating problem. I  
hope my post here: [Forum to mail gateway eats square bracket material.](http://forum.nginx.org/read.php?6,30896) helped to  
locate the bit of code that needed changing.

I hope you will also find the time to further improve the forum by  
adding the option to disable the preview for those that want this.

Well done and keep up the good work!

Posted at Nginx Forum:

> **[Re: Problem with nginx/0.8.54 and alias](https://forum.nginx.org/read.php?2,176110,183805#msg-183805)**
>
> Hello, I try to set up a simple alias louse find out how. I read many articles. I almost try everything but nothing works. Currently I have this code in the file /etc/nginx/sites-available/default. \[code\] server { listen 80; root /var/www/

[Previous page](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301.md?page=1)
