Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Attempting to use ProxyPass for some web-ui's to devices on the local NAT, the config below isn't quite working.

chrome console log;

/ddwrt/common.js:-1 Resource interpreted as Script but transferred with MIME type text/html.
/ddwrt/style/elegant/style.css:-1 Resource interpreted as Stylesheet but transferred with MIME type text/html.
/ddwrt/lang_pack/english.js:-1 Resource interpreted as Script but transferred with MIME type text/html.
/ddwrt/images/paypal.gif:-1 Resource interpreted as Image but transferred with MIME type text/html.
/ddwrt/images/88_en_interpayments.png:-1 Resource interpreted as Image but transferred with MIME
/ddwrt/:563 Uncaught ReferenceError: share is not defined
/ddwrt/:566 Uncaught ReferenceError: share is not defined
/ddwrt/:570 Uncaught ReferenceError: share is not defined
style.css Failed to load resource: the server responded with a status of 502 (Proxy Error)
english.js Failed to load resource: the server responded with a status of 502 (Proxy Error)

/etc/apache2/sites-available/site;

    ProxyRequests Off

    <Proxy *>
            Order deny,allow
            Allow from all

            Options FollowSymLinks
            AllowOverride None

            AddDefaultCharset off

            AuthType Basic
            AuthName "Password Required"
            AuthUserFile /usr/local/apache/passwords
            Require valid-user
    </Proxy>

    #RewriteEngine On

    <Location /ddwrt/>
            ProxyPass http://192.168.1.3
            ProxyPassReverse http://192.168.1.3
            RequestHeader unset referer

            #SetOutputFilter proxy-html

            ProxyHTMLURLMap http://192.168.1.3/ /
            #ProxyHTMLURLMap / /ddwrt/
    </Location>
share|improve this question
add comment

1 Answer

Have you tried commenting out the ProxyHTMLUrlMap statement?

It is only needed if the proxied HTML code contains absolute links (http://host.name/foo). Relative links (/foo) should work just fine without it.

share|improve this answer
    
yep - no difference :( (Have tried multiple combinations of commenting out the ProxyHTMLURLMap/SetOutputFilter/RequestHeader) –  Thermionix Nov 10 '11 at 0:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.