Skip to Content
0
Former Member
May 21, 2010 at 01:15 PM

Configure reverse proxy using Apache 2.2.15

206 Views

Dear Experts,

I am in the process of configuring reverse proxy for my portal so that ppl outside the network can access my servers.

We are on SUSE Linux 10 SP2, installed Apache 2.2.15 and started apache successfully.

When i run command ps -ef | grep httpd, i get list of processes that are running.

But when i open mozilla on the server where i installed apache and type http://myhost.domian.com:8080 it doesnt display any screen.

I still assume that my apache is running. Please correct me on the above.

Now i have configured my httpd.conf based on help.sap.com and various threads on sdn and it looks something like below

====================================================================================================

ProxyPass /irj http://myhost.mydomian.com:50100/irj/

ProxyPassReverse /irj http://myhost.mydomian.com:50100/irj/

ProxyPreserveHost On

#####################################r Reverse Proxy

ProxyRequests off

ProxyPreserveHost On

<VirtualHost 172.XXX.XX.XX:80>

#DocumentRoot Webserver doc root, eg "C:/.../htdocs"

#ServerName www.domainA.com >

#ErrorLog logs/Domain.com-error_log

#CustomLog logs/Domain.com-access_log common

(Commented the above lines as i did not understand what i need them for.. please help on the above)

RewriteEngine On

RewriteLog logs/myhost_unsecured_rewrite.log

RewriteLogLevel 9

<Directory />

Options None

AllowOverride None

</Directory>

RewriteRule ^/(.*)$ http://myhost.mydomian.com:50100/$irj1/ NC,P

ProxyPassReverse /irj http://myhost.mydomian.com:50100/

</VirtualHost>

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

With the above configuration will i be able to acheive my goal of using this server as my reverse proxy and also for redirecting the host name.

Please help me on the above

Thanks and regards

Hunky