0 Replies Latest reply on Dec 22, 2005 3:16 PM by 478431

    fileupload through reverseproxy with apache fails

    478431
      Dear reader,

      I have a reverseproxy (apache 2.0.45 mod_ssl mod_proxy) for proxying
      all request from a webclient on the internet to OCS tiers.
      Lately I reinstalled the proxyserver (due to some problems)
      but as a result I get the following error while trying to attache a file
      to my email:

      500 Internal Server Error

      java.io.EOFException
           at oracle.cabo.share.util.MultipartFormHandler._skipBoundary(Unknown Source)
           at oracle.cabo.share.util.MultipartFormHandler.<init>(Unknown Source)
           at oracle.cabo.share.util.MultipartFormHandler.<init>(Unknown Source)
           at oracle.um.client.traffic_cop.doPost(traffic_cop.java:391)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
           at com.evermind[Oracle9iAS (9.0.2.3) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:700)
           at com.evermind[Oracle9iAS (9.0.2.3) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:285)
           at com.evermind[Oracle9iAS (9.0.2.3) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:771)
           at com.evermind[Oracle9iAS (9.0.2.3) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:170)
           at com.evermind[Oracle9iAS (9.0.2.3) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
           at java.lang.Thread.run(Thread.java:479)

      Downloading an attachment through the reverseproxy (thus from
      OCS to the internet) is without any problems. Any help would be greatly
      appreciated.

      Thanks,

      My reverse proxy settings are (these worked before the reinstall of apache!)


      #######################################################################

      #######################################################################

      #
      # NameVirtualHost settings for port 80 and 443
      #


      NameVirtualHost 1.2.3.4:80
      NameVirtualHost 1.2.3.5:80
      NameVirtualHost 1.2.3.4:443
      NameVirtualHost 1.2.3.5:443

      #######################################################################

      #######################################################################

      #
      # login.example.com ( 80 -> 443 )
      #

      <VirtualHost 1.2.3.5:80>
      ServerName login.example.com
      TransferLog logs/login.example.com/login/access.log

      # route all requests to SSL
      RewriteEngine On
      RewriteRule ^/certificate$ /pbs_offline/pbs_ca.crt [L]
      RewriteCond %{HTTPS} !=on
      RewriteRule ^/(.*)$ https://login.example.com/$1 [R]
      </VirtualHost>

      #######################################################################

      #
      # login.example.com ( port 443 )
      #

      <VirtualHost 1.2.3.5:443>
      ServerName login.example.com
      TransferLog logs/login.example.com/login/access.log
      ErrorLog logs/login.example.com/login/error.log

      RewriteEngine On
      # show planned downtime page during backup timeframe
      RewriteRule ^/pbs_offline/(.*) /pbs_offline/$1 [L]
      RewriteCond %{TIME_HOUR}%{TIME_MIN} >0240
      RewriteCond %{TIME_HOUR}%{TIME_MIN} <0310
      RewriteRule ^/ /pbs_offline/offline_planned.htm [L]
      # Login Server shouldn't be accessed directly, so always go to default application
      RewriteRule ^/$ /pls/orasso [R]

      SSLEngine on
      SSLCertificateFile conf/ssl/login.example.com.crt
      SSLCertificateKeyFile conf/ssl/login.example.com.key


      <Location />
      SSLRequireSSL
      </Location>

      ProxyRequests Off
      ProxyPass ! /pbs_offline
      ProxyPass /pls/orasso http://pbs01ci.internal.net:7777/pls/orasso
      ProxyPass /images http://pbs01ci.internal.net:7777/images
      ProxyPass /pbsSingleSignOn http://pbs01ci.internal.net:7777/pbsSingleSignOn
      ProxyPass /oiddas http://pbs01ci.internal.net:7777/oiddas
      ProxyPass /osso_login_success http://pbs01ci.internal.net:7777/osso_login_success
      ProxyPass /osso_logout_success http://pbs01ci.internal.net:7777/osso_logout_success
      ProxyPassReverse / http://pbs01ci.internal.net:7777/
      </VirtualHost>

      #######################################################################

      #######################################################################

      #
      # webmail.example.com ( port 80 -> 443 )
      #

      <VirtualHost 1.2.3.4:80>
      ServerName webmail.example.com
      TransferLog logs/example.com/webmail/access.log

      # route all requests to SSL
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^/(.*)$ https://webmail.example.com/$1 [R]
      </VirtualHost>

      #######################################################################

      #
      # webmail.example.com ( port 443 )
      #

      <VirtualHost 1.2.3.4:443>
      ServerName webmail.example.com
      TransferLog logs/example.com/webmail/access.log
      ErrorLog logs/example.com/webmail/error.log

      # show planned downtime page during backup timeframe
      RewriteEngine On
      # show planned downtime page during backup timeframe
      RewriteRule ^/pbs_offline/(.*) /pbs_offline/$1 [L]
      RewriteCond %{TIME_HOUR}%{TIME_MIN} >0240
      RewriteCond %{TIME_HOUR}%{TIME_MIN} <0310
      RewriteRule ^/ /pbs_offline/offline_planned.htm [L]

      # always go to Oracle Email Webclient
      RewriteRule ^/$ https://webmail.example.com/um/traffic_cop [R]

      SSLEngine on
      SSLCertificateFile conf/ssl/webmail.example.com.crt
      SSLCertificateKeyFile conf/ssl/webmail.example.com.key

      <Location />
      SSLRequireSSL
      </Location>

      ProxyRequests Off
      ProxyPass ! /pbs_offline
      ProxyPass /um http://pbs01ca.internal.net:7777/um
      ProxyPass /osso_login_success http://pbs01ca.internal.net:7777/osso_login_success
      ProxyPass /osso_logout_success http://pbs01ca.internal.net:7777/osso_logout_success
      ProxyPass /osso_logout http://pbs01ca.internal.net:7777/osso_logout

      ProxyPassReverse / http://pbs01ca.internal.net:7777/

      # webmail reverse proxy client fix
      ExtFilterDefine wmcfix mode=output intype=text/html \
      cmd="/bin/sed s%http://webmail.example.com:443%https://webmail.example.com%g"
      SetOutputFilter wmcfix
      </VirtualHost>

      #######################################################################

      #######################################################################