Re: URL simplification

2011-10-10 Thread Francis GALIEGUE
On Mon, Oct 10, 2011 at 10:56, Léa Massiot lmhe...@orange.fr wrote: Hello, Thank you for reading my post. Here is my question: - Presently, to access my WebApp first page, I have to type in the following URL in a browser: http://hostname-or-ip:8080/my-webapp/ - Instead, I wish I could

Re: URL simplification

2011-10-10 Thread Darryl Lewis
You can also do it with iptables, converting any port 80 request to 8080. The user types in http://mywebapp but gets redirected to http://hostname:8080 On 10/10/11 8:01 PM, Francis GALIEGUE f...@one2team.com wrote: On Mon, Oct 10, 2011 at 10:56, Léa Massiot lmhe...@orange.fr wrote: Hello,

Re: URL simplification

2011-10-10 Thread Marvin Addison
You can also do it with iptables, converting any port 80 request to 8080. The user types in http://mywebapp but gets redirected to http://hostname:8080 +1 What I use: -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 M

Re: URL simplification

2011-10-10 Thread Francis GALIEGUE
[...] What I use: -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 You're forgetting -t nat before -A. REDIRECT is a target only valid from the nat table. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com

Re: URL simplification

2011-10-10 Thread Darryl Lewis
Something I've always wondered about, but never figured out, is how does apache run as 'apache user' or 'nobody' and work on a port below 1024, but Tomcat can't? Anyone got a simple explanation? On 10/10/11 9:53 PM, Mark Thomas ma...@apache.org wrote: On 10/10/2011 09:56, Léa Massiot wrote:

Re: URL simplification

2011-10-10 Thread Francis GALIEGUE
On Mon, Oct 10, 2011 at 13:50, Darryl Lewis darryl.le...@unsw.edu.au wrote: Something I've always wondered about, but never figured out, is how does apache run as 'apache user' or 'nobody' and work on a port below 1024, but Tomcat can't? Anyone got a simple explanation? C (and C++ and many

Re: URL simplification

2011-10-10 Thread Ronald Klop (Mailing List)
Simplified explanation: Apache httpd starts as user root. Binds port 80 and than drops privileges by setuid(apache) or setuid(nobody). In java you can't easily drop privileges. So if you start as root in Java you can't easily change user. Of course you can call native code to do this. And that

Re: URL simplification

2011-10-10 Thread Mark Thomas
On 10/10/2011 12:59, Francis GALIEGUE wrote: On Mon, Oct 10, 2011 at 13:50, Darryl Lewis darryl.le...@unsw.edu.au wrote: Something I've always wondered about, but never figured out, is how does apache run as 'apache user' or 'nobody' and work on a port below 1024, but Tomcat can't? Anyone got

Re: URL simplification

2011-10-10 Thread Francis GALIEGUE
On Mon, Oct 10, 2011 at 14:01, Mark Thomas ma...@apache.org wrote: [...] C (and C++ and many others) has seteuid() and fork(), Java doesn't. Apache starts as root, binds to port 80 (therefore opens an fd on it), then forks. The fd is inherited by the child, which calls seteuid(). Then the

Re: URL simplification

2011-10-10 Thread Léa Massiot
Thank you all for your answers. @Mark Yes indeed fundamentally three operations... 1. I guess you can only have one ROOT WebApp not several... It's not ok for me, I have several WebApps I want to treat that way. @Francis Francis wrote: Apache and configure a vhost with proxying That looks

Re: URL simplification

2011-10-10 Thread Francis GALIEGUE
On Mon, Oct 10, 2011 at 16:04, Léa Massiot lmhe...@orange.fr wrote: [...] I'm interested in Francis' proposal... please can you give me more details? Thanks! I will but in private, this is getting offtopic ;) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33

Re: URL simplification

2011-10-10 Thread Casper Wandahl Schmidt
Hi Léa Here are some links I've used to setup tomcat and apache together http://tomcat.apache.org/connectors-doc/reference/apache.html http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html http://sysadminlinux.com/cms/en/node/32 (although it's for linux most should be good for

Re: URL simplification

2011-10-10 Thread Darryl Lewis
Windows IP Firewall (WIPFW) is an open source project that claims to give similar features to iptables, but I've not used it. On 11/10/11 1:04 AM, Léa Massiot lmhe...@orange.fr wrote: Thank you all for your answers. @Mark Yes indeed fundamentally three operations... 1. I guess you can only