Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28144
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jan Burse <janburse@fastmail.fm> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: new JDK versions |
| Date | Sun, 20 Apr 2014 15:46:52 +0200 |
| Organization | albasani.net |
| Lines | 37 |
| Message-ID | <lj0j44$9jm$1@news.albasani.net> (permalink) |
| References | <8qtsk9t7id2pv6dl56ugepkshhldq8a61t@4ax.com> <MGH3v.89100$dK.9728@fx07.iad> <2dr0l9hrcpei3nb2ii2h92ahgjntduev6p@4ax.com> <8C14v.219206$ZP3.145822@fx20.iad> <p0v1l91p9ndvvjr894k9275ss16agt1okg@4ax.com> <5351b6ca$0$294$14726298@news.sunsite.dk> <NuSdnWEnwrnRC87OnZ2dnUVZ7tSdnZ2d@bt.com> <22i7l993as7r9uhcpk8java7os9uib1bkm@4ax.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net keVc1x/wCq+ds0VN5o+QPJL/GjOpbfigyohAT9O4+C5AeMGjQHP+82eVVOa3d/DtxDRXN+vgL4T+zNVvsRRmRA== |
| NNTP-Posting-Date | Sun, 20 Apr 2014 13:46:44 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="ZK66U/Q5+W2dNXgKOyb1fuYrm3JQFnCWJYv+rMzlkDuckDDFju8rU8HZoXWZq6gvr2obmMHTIRrEpb6wnB6ZoZqkmZk2KiuBEK2oNByEPXV4ExrB66szxeZqLEmX7u9+"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25 |
| In-Reply-To | <22i7l993as7r9uhcpk8java7os9uib1bkm@4ax.com> |
| Cancel-Lock | sha1:SXD7pSmeRbzlqdUu9oaw63F0zZE= |
| Xref | csiph.com comp.lang.java.programmer:28144 |
Show key headers only | View raw
Roedy Green schrieb:
> I wonder if there could be a way to run a site both in http/https
> where which protocol used = user wants HTTPS || webmaster wants HTTPS.
See for example tomcat web.xml:
security-constraint Tag
See for example:
http://docs.oracle.com/cd/E19798-01/821-1841/bncbk/index.html
See in particular
Specifying Separate Security Constraints for Various Resources
You can of course externally provide two different
URL which map to the same content, one URL which
always switches to https and another URL which does
not and stays with http.
The single source contents must be delivered by
some servlet, and the servlet need to do some
content rewriting, such as rewriting links to the
apropriate external URL. (*)
I did something similar not for security, but to
provide a non-mobile and a mobile view of the same
content. Its still experimental, but basically it
works.
Don't know whether there are better solutions around,
or whether basically other solutions amount to the
basically to the same approach.
Bye
(*) You could of course also precompute two different
contents. And store them in the web server in two
different locations.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
new JDK versions Roedy Green <see_website@mindprod.com.invalid> - 2014-04-16 05:29 -0700
Re: new JDK versions Wayne <nospam@all.invalid> - 2014-04-16 23:15 -0400
Re: new JDK versions Roedy Green <see_website@mindprod.com.invalid> - 2014-04-17 17:12 -0700
Re: new JDK versions Wayne <nospam@all.invalid> - 2014-04-18 00:12 -0400
Re: new JDK versions Roedy Green <see_website@mindprod.com.invalid> - 2014-04-18 03:21 -0700
Re: new JDK versions - OT Wayne <nospam@all.invalid> - 2014-04-18 17:27 -0400
Re: new JDK versions Arne Vajhøj <arne@vajhoej.dk> - 2014-04-18 19:35 -0400
Re: new JDK versions "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-04-20 10:40 +0100
Re: new JDK versions Roedy Green <see_website@mindprod.com.invalid> - 2014-04-20 06:22 -0700
Re: new JDK versions Simon Lewis <simonlewis2001@gmail.com> - 2014-04-20 14:38 +0100
Re: new JDK versions Jan Burse <janburse@fastmail.fm> - 2014-04-20 15:46 +0200
Re: new JDK versions Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-04-20 20:55 +0300
Re: new JDK versions v_borchert@despammed.com (Volker Borchert) - 2014-04-21 20:29 +0000
Re: new JDK versions - OT Wayne <nospam@all.invalid> - 2014-04-21 23:38 -0400
Re: new JDK versions - OT Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-04-22 18:34 +0000
Re: new JDK versions - OT Martin Gregorie <martin@address-in-sig.invalid> - 2014-04-22 23:28 +0000
csiph-web