Hello all, I'm running Fedora behind an AJP-based Apache proxy using these statements in my Apache config:
> ProxyPass /fedora ajp://myhost:8009/fedora > ProxyPassReverse /fedora ajp://myhost:8009/fedora I was wondering if people could share their experience of this setup, and whether there are faster and more secure alternatives to mod_proxy for making Fedora available behind a web server. I'd be particularly interested to see how people are enabling SSL availability on port 443 to the repository using HTTP proxy servers. On a separate issue, I've noticed that when accessing datastreams, both behind the AJP proxy and directly, Fedora does not set some important HTTP headers. In particular, the Content-Length and Accept-Ranges headers. Take this example from a request to the Apache proxy: > HTTP/1.1 200 OK > Date: Fri, 17 Sep 2010 11:04:32 GMT > Pragma: No-cache > Cache-Control: no-cache > Expires: Thu, 01 Jan 1970 01:00:00 GMT > content-disposition: inline; filename="Myfile.mp4" > Content-Type: video/mp4 > Transfer-Encoding: chunked And directly to Fedora: > HTTP/1.1 200 OK > Server: Apache-Coyote/1.1 > Pragma: No-cache > Cache-Control: no-cache > Expires: Thu, 01 Jan 1970 01:00:00 GMT > content-disposition: inline; filename="Myfile.mp4" > Content-Type: video/mp4 > Transfer-Encoding: chunked > Date: Fri, 17 Sep 2010 11:10:56 GMT The same file directly from Apache 2 and not in Fedora, for comparison: > HTTP/1.1 200 OK > Date: Fri, 17 Sep 2010 11:21:16 GMT > Server: Apache/2.0.46 (Red Hat) > Last-Modified: Mon, 21 Sep 2009 15:03:04 GMT > ETag: "4ce812d-eba4072-c752ba00" > Accept-Ranges: bytes > Content-Length: 247087218 > Connection: close > Content-Type: video/mp4 It's a shame as these headers are really important for multimedia content (e.g. skipping through HTML5 video). I also notice that the 'Last-Modified' ETag headers are not there, which would be helpful to enable caching. I realise that one way around this would be to write a dispatcher script (as Chris Beer has done for WGBH) which intercepts HTTP requests, queries the Fedora API-A for the datastream location on disk and its MIME type, and which then serves up the file directly using Apache. But is there a way to configure Fedora to do this directly? Thanks in advance. Graeme Graeme West Digital Repository Developer Information Services Glasgow Caledonian University [email protected] Glasgow Caledonian University is a registered Scottish charity, number SC021474 Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009 http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
