Sitemap

Amicuk Programming Answers

Reverse proxy with apache2

-0001-11-30   Views:0

Advertisement

Hi folks, I have a huge problem here. I have a apache 2.0.50 on a Linux system that is to act as a reverse proxy for an enterprise portal. I have set up the apache to do reverse proxying and so far I have made first success. I can get to the login pa

Hi folks,
I have a huge problem here. I have a apache 2.0.50 on a Linux system that is to act as a reverse proxy for an enterprise portal. I have set up the apache to do reverse proxying and so far I have made first success. I can get to the login page of the portal and I even managed to make it show the images. The problem is, when I try to log on to the  portal I am always send back to the logon page in the very instance. If I enter the wrong logon information I see the authorization failed text, but when I enter correct information I only see the logon page again.
I will put tyhe relevant part of my httpd.conf to this message and hope someone can point me to the right location or maybe even tell me what I'm doing wrong.
And ny the way, the portal itself works perfectky when connected directly.
Kind regards,
   Christian Guenther
Reverse proxy configuration ############################################
NameVirtualHost 172.30.210.96
<VirtualHost 172.30.210.96>
   ServerAdmin [email protected]
   ServerName host.external.de
SSL is turned off at the moment
   SSLEngine Off
   SSLCertificateFile /etc/apache2/ssl.crt/proxy.cert.cert
   SSLCertificateKeyFile /etc/apache2/ssl.key/proxy.cert.key
Set up as a proxy for internal SAP systems
   ProxyRequests Off
   ProxyPreserveHost Off
   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>
IRJ
  <Location /irj/>
    ProxyPass http://host.internal.lan:8001/irj/
    ProxyPassReverse http://host.internal.lan:8001/irj/
rewriting rules for proxy
    RewriteEngine On
    RewriteCond %  \.jsp
    RewriteRule ^(.+) % [P]
    RewriteCond % \.servlet
    RewriteRule ^(.+) %
Portal
rewriting rules for proxy
[P]
  </Location>
  <Location />
    ProxyPass http://host.internal.lan:8001/
    ProxyPassReverse http://host.internal.lan:8001/
    RewriteEngine On
    RewriteCond %  \.jsp
    RewriteRule ^(.+) % [P]
    RewriteCond % \.servlet
    RewriteRule ^(.+) % [P]
  </Location>
</VirtualHost>

The replay answer
Advertisement
This is a valid configuration for an Apache Reverse Proxy:
ThreadsPerChild 250
MaxRequestsPerChild  0
ServerRoot /usr/local/apache2
Listen 443
#LoadModule dir_module modules/mod_dir.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule include_module modules/mod_include.so
#LoadModule autoindex_module modules/mod_autoindex.so
LoadModule access_module modules/mod_access.so
#LoadModule auth_module modules/mod_auth.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule mime_module modules/mod_mime.so
#LoadModule env_module modules/mod_env.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule setenvif_module modules/mod_setenvif.so
LoadModule alias_module modules/mod_alias.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule ssl_module modules/mod_ssl.so
ServerAdmin [email protected]
ServerName your.servername.com
UseCanonicalName Off
make sure zou include these with valid entries...
Include conf/log.conf
Include conf/mime.conf
Include conf/default.conf
Include conf/ssl.conf
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
this is for the MS IE SSL bug
BrowserMatch ".MSIE." nokeepalive ssl-unclean-shutdown downgrade-1.0#
force-response-1.0
Header add P3P CP="NOI"
Proxy with caching
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
CacheRoot /usr/local/apache2/Cache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
<VirtualHost *:443>
    ServerName your.servername.com
    ServerAdmin [email protected]
Set the level of log entries - debug produces A LOT of messages
    LogLevel debug
    ErrorLog logs\error.log
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    CustomLog logs\access.log common
NEVER turn this On, it would create a forward proxy   
    ProxyRequests Off
    ProxyPreserveHost On
it is important that the proxy uses active protocol used in the
internet section of the request
    RequestHeader set ClientProtocol https
    Header add P3P CP="NOI"
we need to answer HTTPS requests, so we need an ssl engine   
    SSLEngine On
and a cipher suite plus certificate
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4RSA:HIGH:MEDIUM:LOW:SSLv2:EXP:+eNULL
    SSLProtocol all -SSLv2
of course these entries have to be adopted
    SSLCertificateFile conf/certs/server.crt
    SSLCertificateKeyFile conf/certs/server.key
    SSLOptions +StdEnvVars
this is for the bloody MS IE - I don't know why, but they seem to
have trouble learning in redmond
    BrowserMatch ".MSIE." \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
    CustomLog logs/ssl_request.log \
          "%t %h %x %x \"%r\" %b"
below are the proxied hosts - you always need ProxyPass
AND ProxyPassReverse otherwise it will not work correctly
ITS
    #ProxyPass /iac/               http://itsserver:8081/iac/
    #ProxyPassReverse /iac/          http://itsserver:8081/iac/
direct portal connection              this ought to be the IP
    ProxyPass /irj/               http://10.8.1.14:50000/irj/
    ProxyPassReverse /irj/          http://10.8.1.14:50000/irj/
    ProxyPass /logon/               http://10.8.1.14:50000/logon/
    ProxyPassReverse /logon/          http://10.8.1.14:50000/logon/
Rewrite Rule in case ICM puts session information in URL
NEVER REALLY HARMS
    RewriteEngine On
    RewriteRule  ^/(sap\(.*) http://10.8.1.14:50000/$1 [P,L]
    #ProxyPass /chooselogin/          http://10.8.9.0:50000/chooselogin/
    #ProxyPassReverse /chooselogin/     http://10.8.9.0:50000/chooselogin/
</VirtualHost>

Go to See the other 4 answers

Reverse proxy with apache2

Category:DefaultRelease time:-0001-11-30Views:130

Hi folks, I have a huge problem here. I have a apache 2.0.50 on a Linux system that is to act as a reverse proxy for an enterprise portal. I have set up the apache to do reverse proxying and so far I have made first success. I can get to the login pa[More]

Lync Reverse Proxy Alternatives

Category:DefaultRelease time:2015-10-11Views:130

When migrating from OCS 2007 to Lync 2010, we balked Microsoft’s recommendation to deploy Forefront Threat Management Gateway (or ISA) just to get the reverse proxy services.  TMG is way too expensive and complex for such a limited, simple use case.[More]

OCS Reverse Proxy via Apache 2.0

Category:DefaultRelease time:-0001-11-30Views:130

I'm trying to configure an OCS 10.1.2 (OCS 10g R2) one-box install behind an Apache2 reverse proxy. Has anyone been able to do this? I've configured a virtual host with ProxyPass and ProxyPassReverse directives, however, I'm not sure which component[More]

Problems with apex and anychart (using reverse proxy)

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Im using 2 Servers. The first with Apache2 and the /i/ directory and the second with a Oracle XE Database. The imagedirectory is at the first server. Heres my Apache Setup: <Location /apex> Options None Order allow,deny allow from all ProxyPass[More]

HCI/ECC connection issue with reverse proxy

Category:DefaultRelease time:-0001-11-30Views:130

Hi, we are struggling to set up the connection from C4C to ECC using a reverse proxy (apache). Thank you for any help! Best Regards Florian Our apache config is as follows: <VirtualHost *:443>   ServerName customer.reverseproxy.com   SSLEngine      [More]

Configure Reverse Proxy in Leopard

Category:DefaultRelease time:-0001-11-30Views:130

Hi people I want to configure my httpd.conf file in my Apache to enable reverse proxying... I have looked some instructions in these sites: http://www.apachetutor.org/admin/reverseproxies http://www.askapache.com/htaccess/reverse-proxy-apache.html bo[More]

How to set 3rd Party Reverse Proxy for smp 3.0 ?

Category:DefaultRelease time:-0001-11-30Views:130

Hi am new to SMP 3.0 . Please help me out .hi am fallowing the steps in SyBooks Online for reverse proxy settings. I added the below proxy settings in Apache2.2\conf\httpd.conf . Listen 8080   <VirtualHost *:8080>         ServerName proxy-server   [More]

Reverse proxy - to altrenate server environment in same server.

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I'm having some problems setting up a reverse proxy, but the conditions are a bit special. I'm using a protocol-management application (crushFtp - controls/manages users for stp, ssh, sftp, webdav, etc) and web interface that works within the[More]

How do I use Sun Web Server 7.0u1 reverse proxy to change public URLs?

Category:DefaultRelease time:2015-10-11Views:130

Some of our installations use the Sun Web Server 7.0 (update 1, usually) for hosting some of the public resource and reverse-proxying other parts of the URI namespace from other backend servers (content, application and other types of servers). So fa[More]

IIS Reverse Proxy with URL rewrite.

Category:DefaultRelease time:2015-10-11Views:130

Hi all, hoping to leverage the wealth of knowledge contained here. Any assistance would be very welcome. I'm having an issue getting a reverse proxy and URL rewrite working in IIS 7.0. I need to redirect all requests with a specific virtual directory[More]

How to change Script path for Reserved.ReportViewerWebControl.axd when working behind reverse proxy?

Category:DefaultRelease time:2015-10-11Views:130

Hi, My application works behind a reverse proxy which has polices for secure and unsecure areas of the application. Architecture and Infra team is not willing to allow any root level policies in any case When report viewer control is rendered on the[More]

Hot
Hi Experts Please..Please update me on in detail if possible with example ......Key Fields and Dimensions How Data Records will be processed in DSO and Cube What is 0RECORD MODE in DSO I tried to search but i can't able to find what i am looking forD [More]
Anticipating upgrading today to Logic 9 I went ahead and installed Leopard on my MacBook Pro. I have a folder pop up every time I start my computer that is labeled "CoreMidiServer.Framwork". I cannot close this folder. I have no idea what it is. [More]
I need to create a cube status page and need ideas. I thought I would post this and see maybe if someone has an idea. Details: Everynight, we start running batch and all our Essbase users are logged out of the cubes. We run batch through out the nigh [More]
Hi, Using 'Edit internal address' We added one plant address, and the address no also generated. plant having several address. But when we creating shopping cart, trying to select the ship to address from the search help, address not displaying in th [More]
I tired opening Elements 12 & work on my photos in the edit section. When I click on it, It goes right to me home page & I can't get in. Am working on a deadline for a photo show & need help right away...Please respond...Sandeep Larcar now has [More]
Hi all, I have a strange problem: I have all my music ripped in AAC encoded .m4a files, using the program Max. I performed all this encoding on Leopard (where everything works fine) and have now switched to a new machine running Snow Leopard. Now whe [More]
I copied my 10.3.5 disc to another disc and installed. Took 2-5 minutes. I was offline so i used my Windows XP computer and downloaded 10.3.9 update. I restarted and waited 30 mins and didn't boot. I went into Verbose mode and it is stuck at a part t [More]
Hello, Can I use the break on command in a Classic Report using SQL? If so how? I am using APEX 3.2.1 with Oracle 10g database. Thanks, Mary Edited by: MaryM on Jul 23, 2010 11:20 AMHello Mary, BREAK ON is a SQL*Plus command so isn't permitted in the [More]
sry may be this question has been asked before. but I still find my stream doesnt work properly... I try to implement Online autolog CDC where souce DB and staging DB on different computer. but when I run this SQL select capture_name, state, total_me [More]
I ask this cause i never had to reboot my computer after installing an Firefox update, but then again i never used a x64 version before. Thanks.10.8.5 is the lates ML edition.  I use TM and also carbon copy cloner as my second backup.  If I were you [More]