OK,
I have this partially sorted by front ending it with Apache2 as a
proxy. Still got one minor caveat... see below.
To get railo cfm default documents working with Jetty i followed
Mortbay's Apache recommendations (
http://docs.codehaus.org/display/
JETTY/Configuring+mod_proxy) for proxying requests using a reverse
proxy, and modified them to suit.
I was using apache 2.2 and you'll need to load mod_proxy as a minimum
(other useful proxy modules exist for things like load balancing and
such)
Here's an apache virtual host config that works for all requests
except for one niggling case...
<VirtualHost *>
DirectoryIndex index.cfm
ServerName
proto0.fardev.intmet.ie
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPassMatch ^(.*)/$
http://localhost:8088/railo.war$1/index.cfm
ProxyPassMatch ^/(.*)$
http://localhost:8088/railo.war/$1
ProxyPreserveHost On
</VirtualHost>
The DirectoryIndex entry is irrelevant. The above vhost setting for
proto0.fardev.intmet.ie
works for all types of URL requests EXCEPT the likes of the following:
If i go to
http://proto0.fardev.intmet.ie/railo-context/admin/ the
index.cfm file is CORRECTLY appended to the end of the URL, however,
if i go to
http://proto0.fardev.intmet.ie/railo-context/admin (note no
trailing slash) i get the familiar:
HTTP ERROR 500
Problem accessing /railo.war/railo-context/admin. Reason:
/apps/jetty6/webapps/railo.war/WEB-INF/railo/context/admin (Is a
directory)
Apache DOES append the / to the server base URL, so going to
http://proto0.fardev.intmet.ie IS rewritten as
http://proto0.fardev.intmet.ie/
and hence proxied to
http://localhost:8088/railo.war/index.cfm, but it
doesn't seem to provide this service to subdirectories on the URL
I hope somebody finds this useful enough, and any advice with the
issue above will be most welcome!
Cheers,
shrike71
On Apr 20, 1:07 pm, shrike71 <
shrik...@gmail.com> wrote:
> Nope.
>
> At the moment i'm not front-ending it with Apache or IIS. I'm using
> the built-in webserver on a custom port of 8088.
>
> So i'm surfing tohttp://localhost:8088/railo.war/
> > >> forjettythe only setting is the "welcome-file-list" in the
> > >>> friendly URLS!) Can anybody point me to a goodJettyforum? There
> > >>>>>>> setWelcomeFiles method. So,Jettyis ignoring your list.
>
> > >>>>>>> I've always put my welcome file list in my web.xml file and never had
> > >>>>>>> a problem:
>
> > >>>>>>> <web-app>
> > >>>>>>> ....
> > >>>>>>> <welcome-file-list>
> > >>>>>>> <welcome-file>index.cfm</welcome-file>
> > >>>>>>> <welcome-file>index.html</welcome-file>
> > >>>>>>> <welcome-file>index.jsp</welcome-file>
> > >>>>>>> </welcome-file-list>
> > >>>>>>> </web-app>
>
> > >>>>>>> On Apr 16, 4:48 am, shrike71 <
shrik...@gmail.com> wrote:
>
> > >>>>>>>> Interestingly enough, i got rid of the railo.xml file in the contexts/
> > >>>>>>>> dir and i dropped an unpacked openbluedragon.war dir into webapps and
> > >>>>>>>> restartedjetty. Railo was still not able to process an index.cfm
> > >>>>>>>> welcome file and bluedragon was! I chopped and swapped loads of system
> > >>>>>>>> settings in the railo web.xml file to get it to match the one from
> > >>>>>>>> openbluedragon as far as possible without breaking it, still to no
> > >>>>>>>> avail.
>
> > >>>>>>>> Any insights, anyone?
>
> > >>>>>>>> Thanks,
>
> > >>>>>>>> shrike71
>
> > >>>>>>>> On Apr 16, 7:47 am, "Gert Franz" <
gert.fr...@railo.ch> wrote:
>
> > >>>>>>>>> Shrike,
>
> > >>>>>>>>> can you post it to theJettyforums? The problem lies in the error
>
> > >>>>> message.
>
> > >>>>>>>>> It's aJettymessage and not a Railo one... The XML looks fine from
> ...
>
> read more »