Re: [users@httpd] Conditionally LoadModule?

2016-11-15 Thread Jack Bates
On 15/11/16 09:00 AM, Eric Covener wrote: On Tue, Nov 15, 2016 at 10:56 AM, Jack Bates <4ec...@nottheoilrig.com> wrote: Just a thought: Would it make sense to evaluate both at startup and during request processing? Like is that a reasonable feature request? It's reasonable, but i

Re: [users@httpd] Conditionally LoadModule?

2016-11-15 Thread Jack Bates
On 14/11/16 07:59 PM, Eric Covener wrote: On Mon, Nov 14, 2016 at 9:40 PM, Jack Bates <4ec...@nottheoilrig.com> wrote: Why doesn't the following work? LoadModule php7_module modules/libphp7.0.so LoadModule php5_module modules/libphp5.so /usr/lib/apac

[users@httpd] Conditionally LoadModule?

2016-11-14 Thread Jack Bates
Why doesn't the following work? LoadModule php7_module modules/libphp7.0.so LoadModule php5_module modules/libphp5.so /usr/lib/apache2/modules/libphp7.0.so exists on my system, but Apache keeps trying to load /usr/lib/apache2/modules/libphp5.so: Cannot load modules/libp

Re: [us...@httpd] configure one file with multiple mime types?

2010-03-23 Thread Jack Bates
On Thu, Mar 18, 2010 at 08:31:15AM +, Nick Kew wrote: > On 16 Mar 2010, at 00:00, Jack Bates wrote: > > > How can I configure one file with multiple mime types? > > Use mod_negotiation. Thanks Nick - but I can't get type map working whatsoever : ( I created

[us...@httpd] configure one file with multiple mime types?

2010-03-15 Thread Jack Bates
How can I configure one file with multiple mime types? The behaviour I want to achieve is that described here, http://www.w3.org/TR/xhtml-media-types/ - when a file is requested and the user agent advertises "application/xhtml+xml" in the "Accept:" request header, I want Apache to respond with a

[us...@httpd] Re: RewriteRule in neither "foo/.htaccess" nor ".htaccess" can match http://example.com/.../foo

2009-11-25 Thread Jack Bates
> On 11/24/09, Jack Bates freezone.co.uk> wrote: > > * /foo/ to deliver /foo/index.html, or whatever it would naturally > deliver > > * /foo to deliver /foo.html always > > IIUC, your problem boils down to: > > /.htaccess has your desired behavior &g

[us...@httpd] Re: RewriteRule in neither "foo/.htaccess" nor ".htaccess" can match http://example.com/.../foo

2009-11-24 Thread Jack Bates
> Jack Bates wrote: > > I'm struggling a bit with this mod_rewrite rule, > > I am a bit intimidated by your detailed explanation and the level of > expertise required to fully understand your requirements, never mind > finding a solution. But reading your post

[us...@httpd] RewriteRule in neither "foo/.htaccess" nor ".htaccess" can match http://example.com/.../foo

2009-11-24 Thread Jack Bates
I'm struggling a bit with this mod_rewrite rule, RewriteEngine On RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule . %{REQUEST_FILENAME}.html My goal is, when someone requests http://example.com/.../foo, to respond with "foo.html", if it exists I originally tried doing this with MultiViews, b

[us...@httpd] how to respond to .../bar with bar.html and .../bar/ with bar/index.html?

2009-11-02 Thread Jack Bates
I have files foo.html, bar.html, and bar/index.html I want the URLs, * http://example.com/.../foo to respond with foo.html, * http://example.com/.../bar to respond with bar.html, * http://example.com/.../bar/ to respond with bar/index.html I configured, "Options +MultiViews", and sure enough, ht

[us...@httpd] SetHandler only if not Forbidden

2009-03-21 Thread Jack Bates
There are two Apache servers sharing content in my student file space, * http://cgi.sfu.ca/~jdbates/ ExecCGI is on * http://www.sfu.ca/~jdbates/ ExecCGI is off When I add, Action my-handler /~jdbates/my-handler SetHandler my-handler - to my .htaccess, cgi.sfu.ca works, but www.sfu.ca errors 403

[EMAIL PROTECTED] PHP / mod_dav content handler

2007-03-31 Thread Jack Bates
When both PHP and mod_dav are enabled, how can I force PHP to be the content handler of a PHP resource, vs. mod_dav? I contributed a WebDAV module to the PHP Gallery project and some users have reported that mod_dav interferes with it: http://gallery.menalto.com/node/62232 I reproduced the proble