Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8407

Re: How to block http access for selective URL's

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
Date Fri, 30 Sep 2011 10:52:38 +0200
From Jaap Droogers <JaapDroogers@unusable.meel.homelinux.net>
User-Agent Mozilla/5.0 (X11; U; Linux i686; nl-NL; rv:1.9.2.23) Gecko/20110921 Lightning/1.0b2 Thunderbird/3.1.15
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: How to block http access for selective URL's
References <0f7e5dde-1651-4644-9a41-0145401f2b74@dk6g2000vbb.googlegroups.com>
In-Reply-To <0f7e5dde-1651-4644-9a41-0145401f2b74@dk6g2000vbb.googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 27
Message-ID <4e858356$0$415$e4fe514c@dreader26.news.xs4all.nl> (permalink)
NNTP-Posting-Host 83.160.252.3
X-Trace 1317372759 dreader26.news.xs4all.nl 415 [::ffff:83.160.252.3]:35761
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8407

Show key headers only | View raw


On 30-09-11 03:09, schreef zigzagdna:
> I have several web sites under same installation of Apache Tomcat,
> e.g.,
> http://mycomputer.com/web-admin
> http://mycomputer.com/teamacces
> https://mycomputer.com/teamacces
>
>
> What I want to do is to disallow http access to 2nd URL, but allow
> http access to 1st URL. Where I look at server.xml, I can block http
> access for all web sites under mycomputer.com but that is not what I
> want, I still have to allow http access to 1st URL.
> Is there a way to do it, if yes, how?

I use my Apache HTTP server for this kind of access. It is not the most 
advanced configuration, but for me it works fine.

In proxy.conf (from the HTTP server) I enter the following statements:
         ProxyPass         /hudson  http://localhost:8080/hudson
         ProxyPassReverse  /hudson  http://localhost:8080/hudson


My network firewall only forwards http (80) and https (443) to my 
server, Tomcat listens to 8080 so it is not posible to acces Tomcat 
direct from the outside world.

Jaap.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to block http access for selective URL's zigzagdna <zigzagdna@yahoo.com> - 2011-09-29 18:09 -0700
  Re: How to block http access for selective URL's Jaap Droogers <JaapDroogers@unusable.meel.homelinux.net> - 2011-09-30 10:52 +0200
  Re: How to block http access for selective URL's Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-30 06:58 -0300

csiph-web