mod_rewrite to page with HTTP auth
Posted
by
Joe
on Server Fault
See other posts from Server Fault
or by Joe
Published on 2011-11-19T00:35:20Z
Indexed on
2011/11/19
1:54 UTC
Read the original article
Hit count: 529
apache2
|mod-rewrite
I'm trying to use modrewrite to proxy http:://myserver/cam1 to an internal, http-auth protected server at http:://admin:[email protected]/cgi/mjpg/mjpg.cgi
No matter what I try, though, requests to http:://myserver/cam1 always prompt me for the username and password. I've tried all of these to no avail.
RewriteRule ^/cam1 http://admin:[email protected]/cgi/mjpg/mjpg.cgi [P,L]
RewriteRule ^/cam1 http://192.168.99.130/cgi/mjpg/mjpg.cgi [E=Authorization:Basic\ YWRtaW46YWRtaW4=,P,L]
RewriteRule ^/cam1 http://192.168.99.130/cgi/mjpg/mjpg.cgi [E=HTTP_USERID:admin,E=HTTP_PASSWORD:admin,P,L]`
Anybody have any other ideas?
© Server Fault or respective owner