3 Replies Latest reply on Mar 2, 2011 9:15 AM by ysbbibo

    Proxy problem with GateIn

    ysbbibo

      I'm running GateIn through a proxy. The problem is when a user fails to enter the correct login, the navigator shows html code instead of the web page.

       

      I'm using Apache and my configuration is:

       

      <IfModule mod_proxy.c>

        ProxyRequests On

        ProxyVia On

       

        ProxyPass / http://192.168.64.162:8080/

        ProxyPassReverse / http://192.168.64.162:8080/

       

        <Proxy *>

          Order deny,allow

          Deny from all

          Allow from 192.168.0.0/16

        </Proxy>

       

        ErrorLog /var/log/apache2/GateIn-error.log

        CustomLog /var/log/apache2/GateIn-access.log common

      </IfModule>

       

      Could anybodye help me?

       

      Thanks

        • 1. Proxy problem with GateIn
          mposolda

          This is known issue but it should be already fixed with latest GateIn version. The issue was that GateIn error page didn't return HTTP header "Content-type" and so that Apache is attaching Content-type header "text/plain" . And that's why you are seeing code. I think you can fix it by:

          - update to latest GateIn trunk

          - In your Apache httpd.conf change property DefaultType to "text/html" (default value is "text/plain" )

           

          Hope this helps,

          Marek

          • 2. Proxy problem with GateIn
            mposolda

            You don't need to use both options (Update trunk and Change Apache) but you can choose only one (Sorry for not making it clear from previous comment)

            • 3. Proxy problem with GateIn
              ysbbibo

              It works.

               

              Thanks for the help.