Solved

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

Posted on 2008-10-26
2
427 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
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

24 Experts available now in Live!

Get 1:1 Help Now