Apr 292011
 

I was asking to Evan Miller if his nginx mod_strip module can honour <textarea> tag. i got quick responses from him.
previous mod_strip module eliminates newline characters within <textarea> list contents. here’s examples with latest mod_strip. I’ve tested it using postfixadmin.

configuration:

server {
         listen		xxx.xxx.xxx.xxx:80;
         server_name	www.example.com;
         strip		on;
         access_log	/var/log/nginx/www.example.com-access.log  main;

         location  / {
             proxy_set_header Host $host;
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header X-Forwarded-Host $host;
             proxy_set_header X-Forwarded-Server $host;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
             proxy_pass http://127.0.0.1:80;
         }
}


list inside <textarea>

mod_strip textarea

mod_strip textarea

HTML source

source mod_strip textarea

source mod_strip textarea

mod_strip modules can be download from here:
https://github.com/evanmiller/mod_strip

enjoy 🙂

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

*