Solved

How can I limit access to TomCat web site which is accessed via reverse proxy

Posted on 2008-10-26
2
432 Views
Last Modified: 2013-12-02
I have an Apache server that is running a web site and also providing a reverse proxy to a TomCat server.

I have added the Order/Allow/Deny lines to this section of the httpd.conf file

<Directory />
    Options FollowSymLinks
    AllowOverride None

    Order deny,allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 19.7.139.1
    Allow from 1.117.25.50
</Directory>

This is restricted access to all the sites on this server but I can still access the sites that are pointed to via the reverse proxy.  What do I need to do to have the reverse proxy sites filtered as well.

This is running on a Windows system.


Thanks.
0
Comment
Question by:RJLemon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 500 total points
ID: 22808565
You may try a <proxy> container like

<Proxy *>
    Order deny,allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 19.7.139.1
    Allow from 1.117.25.50
</Proxy>

Or a <Location /> container like
<Location />
    Order deny,allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 19.7.139.1
    Allow from 1.117.25.50
</Location>
0
 

Author Closing Comment

by:RJLemon
ID: 31510114
Thanks caterham,

The  section seems to have done the trick.

Ron.
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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