httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Bates <ms...@freezone.co.uk>
Subject [users@httpd] SetHandler only if not Forbidden
Date Sat, 21 Mar 2009 21:05:34 GMT
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,
Forbidden. I assume this is because ExecCGI is off, so the handler
cannot be executed.

How can I add the SetHandler directive to my .htaccess in such way that
it only applies if ExecCGI is on, or for requests to cgi.sfu.ca, or if
the handler will not error?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message