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>
HTML source
mod_strip modules can be download from here:
https://github.com/evanmiller/mod_strip
enjoy
You may also want to read these posts:
- Nginx Reverse Proxying Multiple Domains Using map Module
- Nginx, Simple Http Authentication Using ngx_http_auth_pam_module Module
- Nginx, Strip All Newlines Using nginx-nonewlines Module
- Nginx As Reverse Proxy IPV6 to IPV4 Website
- Nginx Memcached module And PHP
- Nginx + Vlc Streaming Cheap Webcam
- Monitoring And Debugging Memcached Server Using phpMemCachedAdmin
- Build Nginx RPM With ngx_cache_purge module
- Nginx Configuration SyntaxHighlighting
- Nginx Blocking Spoofed Google Bot


Follow me on Twitter