Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-26 Thread Florent Georges
Krist van Besien wrote: > Ad the following in your VirtualHost block: > > Order deny, allow > Allow from All > It seems that was the answer indeed, but it worked only when I used * instead of /*. So everything's fine now, thanks again to both of you! Regards, -- Florent Georges htt

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Richard Peacock wrote: > Have you tried to just have the two lines without the > VirtualHost stuff? > ProxyRequests Off > ProxyPass / http://localhost:1234/container/ctxt/ Well, I didn't try, but that would redirect all my original website then, wouldn't it? That's not reall

RE: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Richard Peacock
functions/directives etc would vary from one distro to another unless you're running it on Windows. Rich -Original Message- From: Florent Georges [mailto:li...@fgeorges.org] Sent: 25 March 2009 15:44 To: users@httpd.apache.org; Richard Peacock Subject: Re: [us...@httpd] Redirect a whole si

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Richard Peacock wrote: > Suppose the local server has address http://example.com/; then > ProxyPass /mirror/foo/ http://backend.example.com/ > will cause a local request for > http://example.com/mirror/foo/bar to be > internally converted into a proxy request to > http://backend.example.com/bar

RE: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Richard Peacock
t: 25 March 2009 15:38 To: users@httpd.apache.org; Krist van Besien Subject: Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container Krist van Besien wrote: Indeed, I use Ubuntu. > So you need to enable it explicitely for your virtualhost. > Ad the following in your

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Krist van Besien wrote: Indeed, I use Ubuntu. > So you need to enable it explicitely for your virtualhost. > Ad the following in your VirtualHost block: > > Order deny, allow > Allow from All > Thanks! I thus now have the following in my site file: NameVirtualHost www.new.com:80

RE: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Richard Peacock
[us...@httpd] Redirect a whole site from port 80 to a servlet container Richard Peacock wrote: > I did not use NameVirtualHost or anything, just those two > lines. Perhaps you need to include the two lines: > Order allow,deny > Allow from all Unfortunately that does not

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Krist van Besien
On Wed, Mar 25, 2009 at 3:34 PM, Florent Georges wrote: > > Richard Peacock wrote: > >> If I recall from memory the error you got means there is no >> default document and you don't have permission to give a >> directory listing. > >  :-)  Yes, if I get directly http://original.com:1234/container/

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Richard Peacock wrote: > I did not use NameVirtualHost or anything, just those two > lines. Perhaps you need to include the two lines: > Order allow,deny > Allow from all Unfortunately that does not change anything. But I wonder, how do you make the difference between both websi

RE: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Richard Peacock
from all In your VirtualHost declaration? -Original Message- From: Florent Georges [mailto:li...@fgeorges.org] Sent: 25 March 2009 14:35 To: users@httpd.apache.org Subject: Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container Richard Peacock wrote: > If I rec

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Richard Peacock wrote: > If I recall from memory the error you got means there is no > default document and you don't have permission to give a > directory listing. :-) Yes, if I get directly http://original.com:1234/container/app/ I get the page. In addition, even the original website does

RE: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Richard Peacock
orges [mailto:li...@fgeorges.org] Sent: 25 March 2009 13:56 To: Richard Peacock Cc: users@httpd.apache.org Subject: Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container Richard Peacock wrote: > The lines you put in you conf file would be something like: > ProxyR

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Richard Peacock wrote: > The lines you put in you conf file would be something like: > ProxyRequests Off > ProxyPass /app1/ http://the.target.server:port/ It seems I misunderstood something... I created a new site file for the new domain name, say www.new.com, and used a2ensite successfully.

Re: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Richard Peacock wrote: > Just a thought because I have a main webserver also running > on p80 and a hyperlink to /myapp which takes the user silently > to a whole different web server on a different port. > Good luck! Thanks! I am going to have a look, I didn't know it before. Just a deta

RE: [us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Richard Peacock
- From: Florent Georges [mailto:li...@fgeorges.org] Sent: 25 March 2009 12:42 To: users@httpd.apache.org Subject: [us...@httpd] Redirect a whole site from port 80 to a servlet container Hi, I have an Apache HTTPD 2 running on my server, serving my website on the port 80. I have also a

[us...@httpd] Redirect a whole site from port 80 to a servlet container

2009-03-25 Thread Florent Georges
Hi, I have an Apache HTTPD 2 running on my server, serving my website on the port 80. I have also a servlet container on that machine, listening to the port 1234 (the real is different of course.) The interesting pages on this container are available at http://www.mysite.com:1234/ctnr/app/i