Well the virtual host bit of the config file read:- GNU nano 2.0.6 File: /etc/apache2/sites-enabled/haddenham.dga.co.uk
<VirtualHost *> LogLevel debug ProxyPreserveHost On <Location /ofbiz > ProxyPass ajp://10.0.1.2:8009/ ProxyPassReverse http://haddenham.dga.co.uk/ofbiz </Location> Alias /nick/ /home/nick/www/ Alias /nick-webdav/ /home/nick/www/ <Location /nick-webdav/ > Dav On AuthType Digest AuthName "Nick WebDAV" AuthDigestDomain /nick-webdav/ AuthDigestProvider file AuthUserFile /home/nick/htdigest Require valid-user </Location> </VirtualHost> There are some other <Location> tags, but they are not in a VirtualHost tag. Perhaps they should be? David On Thursday 27 September 2007, Raj Saini wrote: > It looks your virtual host is default virtual host and it is serving all > the resources. Try posting relevant part of your config file. > > Raj > > David Goodenough wrote: > > All the <Location> tags are inside a single <VirtualHost *> tag. > > > > David > > > > On Thursday 27 September 2007, Raj Saini wrote: > >> It is strange. Are you using a main server or virtual host based setup? > >> > >> Thanks, > >> > >> Raj > >> > >> David Goodenough wrote: > >>> Raj, > >>> > >>> Well actually I am trying to STOP it from serving the images locally, > >>> but rather to pass the request on in the same way that it passes on all > >>> the other requests. My Ofbiz server is on another machine so I want > >>> everything passed on to that machine. > >>> > >>> My <Location> tag for ofbiz is <Location /ofbiz/> and all the rest have > >>> their own <Location> tags, and none of them mention ofbiz. As it > >>> happens all the rest are local apps (apt-cacher, trac etc). There is > >>> also not a directory called /var/www/ofbiz. > >>> > >>> David > >>> > >>> On Thursday 27 September 2007, Raj Saini wrote: > >>>> David, > >>>> > >>>> Apache would get confused and it is how this works. If you want Apache > >>>> not to confuse, and want your images to be served without going > >>>> through AJP, change your DocumentRoot of virtual host accordingly. For > >>>> example instead of using DocumentRoot as /var/www/, point it to the > >>>> base of images web application i.e. > >>>> ${ofbiz_installdir}/framework/images/webapp. Apache will server images > >>>> from this folder. > >>>> > >>>> You can not have a ProxyPass mount point as well as a file or folder > >>>> with same name in your document root. > >>>> > >>>> Thanks, > >>>> > >>>> Raj > >>>> > >>>> Only way you can get > >>>> > >>>> David Goodenough wrote: > >>>>> Did you manage to put it in your FAQ, and is there a URL to that FAQ? > >>>>> > >>>>> I am having problem in that this Apache Web server is also serving a > >>>>> number of other (non Java) things, and when I try to add this > >>>>> ProxyPass it gets confused with the /image files, and tries to get > >>>>> them from /var/www/images which of course does not work. I tried > >>>>> moving the ProxyPass stuff to the front of the VirtualHost, but that > >>>>> made no difference. > >>>>> > >>>>> David > >>>>> > >>>>> On Sunday 12 August 2007, Jacques Le Roux wrote: > >>>>>> Thanks a lot Raj, > >>>>>> > >>>>>> I think I will try it soon and hopefully put your tip in "my" FAQ on > >>>>>> Confluence ! It's clearly far easier than mod_jk and moreover if > >>>>>> it's faster then it should be the new way of doing that... > >>>>>> > >>>>>> Jacques > >>>>>> > >>>>>> De : "Raj Saini" <[EMAIL PROTECTED]> > >>>>>> > >>>>>>> Yes, I have configured our Ofbiz + Apache HTTP 2.2 with > >>>>>>> mod_ajp_proxy. You will need to enable proxy for httpd and > >>>>>>> mod_proxy_ajp within your virtual hosts. I am doing it Debian way. > >>>>>>> For a standard httpd.conf following should work: > >>>>>>> > >>>>>>> 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. > >>>>>>> > >>>>>>> 2. Somewhere in the global part of httpd.conf > >>>>>>> -------------------------------------------------- > >>>>>>> #turning ProxyRequests on and allowing proxying from all may > >>>>>>> allow #spammers to use your proxy to send email. > >>>>>>> > >>>>>>> ProxyRequests Off > >>>>>>> > >>>>>>> <Proxy *> > >>>>>>> AddDefaultCharset off > >>>>>>> Order deny,allow > >>>>>>> Allow from all > >>>>>>> #Allow from .example.com > >>>>>>> </Proxy> > >>>>>>> > >>>>>>> # Enable/disable the handling of HTTP/1.1 "Via:" headers. > >>>>>>> # ("Full" adds the server version; "Block" removes all > >>>>>>> outgoing Via: headers) > >>>>>>> # Set to one of: Off | On | Full | Block > >>>>>>> > >>>>>>> ProxyVia On > >>>>>>> > >>>>>>> 3. Inside your virtual host config > >>>>>>> ----------------------------------- > >>>>>>> ProxyPreserveHost On > >>>>>>> proxyPass / ajp://localhost:8009/ > >>>>>>> RewriteEngine On > >>>>>>> RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 > >>>>>>> > >>>>>>> That is it you need to make it work. > >>>>>>> > >>>>>>> Thanks, > >>>>>>> > >>>>>>> Raj > >>>>>>> > >>>>>>> Jacques Le Roux wrote: > >>>>>>>> >From this blog I'm not sure it's the good solution yet. Do you > >>>>>>>> > have > >>>>>>>>> > >>>>>>>>> valuable experience with it ? > >>>>>>>> > >>>>>>>> http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_m > >>>>>>>>od _p r oxy_ajp.html > >>>>>>>> > >>>>>>>> Jacques > >>>>>>>> > >>>>>>>> PS : though this links seem good points : > >>>>>>>> http://confluence.atlassian.com/display/DOC/Running+Confluence+beh > >>>>>>>>in d+ A pache#comment-16121884 > >>>>>>>> http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html > >>>>>>>> > >>>>>>>> De : "Raj Saini" <[EMAIL PROTECTED]> > >>>>>>>> > >>>>>>>>> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is > >>>>>>>>> far simpler than mod_jk. > >>>>>>>>> > >>>>>>>>> Thanks, > >>>>>>>>> > >>>>>>>>> Raj > >>>>>>>>> > >>>>>>>>> Gautam Deb wrote: > >>>>>>>>>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache > >>>>>>>>>> plug-in that handles the communication between Tomcat and > >>>>>>>>>> Apache. You can refer the link > >>>>>>>>>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html > >>>>>>>>>> > >>>>>>>>>> This way you can route request to the web container. > >>>>>>>>>> > >>>>>>>>>> Regards, > >>>>>>>>>> Gautam Deb > >>>>>>>>>> > >>>>>>>>>> On 8/12/07, Mathius Allo <[EMAIL PROTECTED]> wrote: > >>>>>>>>>>> Hi All, > >>>>>>>>>>> > >>>>>>>>>>> Is it possible to have a deployment configuration where > >>>>>>>>>>> Apache web server being used to route request to the web > >>>>>>>>>>> container? > >>>>>>>>>>> > >>>>>>>>>>> How to deploy an OfBiz application within an Application > >>>>>>>>>>> Server? > >>>>>>>>>>> > >>>>>>>>>>> Thanks in advanced. > >>>>>>>>>>> Mathius > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> --------------------------------- > >>>>>>>>>>> Pinpoint customers who are looking for what you sell.