Restricting URL w.r.t HTTP method and setting different authentication mechanism for each

Posted by user31745 on Pro Webmasters See other posts from Pro Webmasters or by user31745
Published on 2013-10-18T05:29:11Z Indexed on 2013/10/18 10:17 UTC
Read the original article Hit count: 155

Filed under:
|

I shall start with an example. I want to restrict to POST requests only for http://path/to/logical/abc.xml and restrict to GET only for http://path/to/logical/def.xml. How do I put constraints like this as the paths are logical and location directive is not supported in .htaccess?

The actual problem is to set different authentication type(basic, digest) on diff logical file.for eg. for abc.xml I want to authenticate for Basic type of authentication and def.xml with digest.

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about apache