Solved

reverse proxy Apache server

Posted on 2010-08-30
2
303 Views
Last Modified: 2012-08-13

Hi,

I want to configure a Apache server for reverse proxy.
And find some usefull stuff on this forum and other websites. But everything is configure
with ProxyPass /app1 http://internalsite:80/

My question is can i configure the proxy as this:

visit http://www.domain.com (outside) true http://internalsite1:80/
visit http://mail.domain.com (outside) true http://internalsite2:80/
visit http://sharepoint.domain.com (outside) true http://internalsite3:80/


Thanks
0
Comment
Question by:jonas-p
2 Comments
 
LVL 33

Expert Comment

by:Busbar
ID: 33561920
0
 
LVL 26

Accepted Solution

by:
arober11 earned 500 total points
ID: 33578332
Hi, simple just add the appropriate proxy pass / reverse blocks to your three Virtual host definitions, in you httpd.conf e.g.

<VirtualHost www.domain.com:80>
...
  <Proxy *>
  Order deny,allow
  Allow from all
  </Proxy>

  ProxyPassReverse /           http://internalsite1:80/
  ProxyPassReverse /           http://internalsite1:80/
</Virtualhost>

<VirtualHost mail.domain.com:80>
...
  <Proxy *>
  Order deny,allow
  Allow from all
  </Proxy>

  ProxyPassReverse /           http://internalsite2:80/
  ProxyPassReverse /           http://internalsite2:80/
</Virtualhost>


<VirtualHost sharepoint.domain.com:80>
...
  <Proxy *>
  Order deny,allow
  Allow from all
  </Proxy>

  ProxyPassReverse /           http://internalsite3:80/
  ProxyPassReverse /           http://internalsite3:80/
</Virtualhost>


The following may help you tailor each of the 3 proxy blocks: http://www.apachetutor.org/admin/reverseproxies
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now