Handler Chain (based on request method)

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

 



I'm using mod_perl and CGI::Application::Dispatch to create a RESTful web application. In the one resource, GETs should be sent to the default handler, and all other requests to the dispatcher. I have tried using <Limit> and <LimitExcept>, but they do not appear to be working. The handlers get processed regardless. Here is the current config:

	<Location /fs>
		<LimitExcept GET>
			Allow from All
			SetHandler perl-script
			PerlHandler BackCAD::Dispatch
		</LimitExcept>
		<Limit GET>
			Allow from All
			SetHandler default-handler
		</Limit>
	</Location>

Is there some way to make this work? Do I need to write some sort of pre-dispatcher that checks the request method and returns DECLINED if it's GET? But if it's *not* GET, how do I then pass control on to the other dispatcher?

Thank you so much for your time and assistance.
Aaron

---------------------------------------------------------------------
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