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

Date 2011-09-30 10:52 +0200
From Jaap Droogers <JaapDroogers@unusable.meel.homelinux.net>
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>
Message-ID <4e858356$0$415$e4fe514c@dreader26.news.xs4all.nl> (permalink)

Show all headers | 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