Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
URL rewriting - LAMP 7 42
Java TXT, RTF, DOC, DOCX to PDF converter 3 396
erroer in installing php7.0.7 on an apache 2 machine 4 133
PHP Register global 21 89
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…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 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