[users@httpd] Chaging CR/LF on-the-fly with mod_publisher

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.
I'm doing a ProxyPass in apache 2.0 of a IP camera.

The camara has a built-in webserver and I'm having a problem
the that webserver, because it sends all the http files in DOS mode,
that is, having CR/LF as the newline separator.

In the traffic flow, there is some squid proxy that does not like this
kind of CR/LF and the squid generate the errors:
1158877929.909 0 192.168.1.1 TCP_DENIED/400 1558 GET error:missing-http-ident - NONE/- text/html

Also, if I do a wget of a file in the Ip camera, the file ends up in DOS format.

My idea is to use mod_publisher or some mod to convert from CR/LF on te fly
in apache. So, every squid that is the traffic flow does not DENIED the file.

I tried this already:

<VirtualHost ....
...
ProxyPass / http://192.168.xx.yy/
ProxyPassReverse / http://192.168.xx.yy/
SetOutputFilter  markup-publisher
MLRewriteRule http://192.168.xx.yy /
MLOutputMode HTML
MLRewriteOptions +events +attributes +characters +cdata
MLRewriteRule \r\n \n Rn
SetOutputFilter  charset-lite
CharsetSourceEnc UTF-8
CharsetDefault ISO-8859-1
</VirtualHost>

Thanks
Oliver

--
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux