SetHandler only if not Forbidden

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux