how do I enable reverse proxy on apache 2.2.17/centos?

Need help? Post your questions here.

Moderator: moderators

how do I enable reverse proxy on apache 2.2.17/centos?

Postby grx123 » Sat Mar 26, 2011 3:00 pm

I am trying to setup a reverse proxy on Apache 2.2.17 but the a2enmod proxy_http does not work on apache 2.2.17 I ran a httpd -l and got the following indicating that i do have the mod proxy module installed

Code: Select all
rss1@anything [~]# httpd -version
Server version: Apache/2.2.17 (Unix)
Server built:   Mar 25 2011 10:41:52
Cpanel::Easy::Apache v3.2.0 rev5315
rss1@anything [~]# httpd -l
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_expires.c
  mod_headers.c
  mod_setenvif.c
  mod_version.c
  mod_proxy.c
  mod_proxy_connect.c
  mod_proxy_ftp.c
  mod_proxy_http.c
  mod_proxy_scgi.c
  mod_proxy_ajp.c
  mod_proxy_balancer.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_info.c
  mod_suexec.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c


Could someone please enlighten me on how to setup/enable the reverse proxy.

TIA
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm

Postby grx123 » Sun Mar 27, 2011 5:35 am

in apache the mod proxy if listed is already enabled no need ot enable it
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm

Postby Skidd » Mon Mar 28, 2011 1:06 pm

I assume you got this working? If not, it's as simple as adding 2 lines to your appache config file.

Code: Select all
    ProxyPass / http://10.0.0.3:4040/
    ProxyPassReverse / http://10.0.0.3:4040/


My subsonic server is running internally on 10.0.0.3:4040
The above proxies to that machine through Apache on port 80.

Actually, what I have is a full virtual host setup to serve subsonic to http://subsonic.

Code: Select all
<VirtualHost *:80>
    ServerName  subsonic.<mydomain>.com

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://10.0.0.3:4040/
    ProxyPassReverse / http://10.0.0.3:4040/

</VirtualHost>
Skidd
 
Posts: 15
Joined: Wed Mar 09, 2011 10:07 pm

Postby grx123 » Tue Mar 29, 2011 5:07 am

thanks for thr reply . Yeah i finally managed to get it to work I posted my solution on other thread I hope that heps someone
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 29 guests