REST PUT 403

I was testing a REST interface and always getting 403 – forbidden, turns out this is the apache default response for put requests, well at least thats how its setup by default on apache with cPanel, to fix create a conf file:

/usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/*.conf

And add:

<Directory /wheverever>
Order allow,deny
Allow from all
</Directory>

Then test apache aint gonna break with:

/scripts/verify_vhost_includes

If all ok, then restart apahce from WHM and you are good to go.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>