Re: [us...@httpd] Config for a PHP REST web service

2010-07-26 Thread Fredric Fredricson
On 07/22/2010 10:50 PM, Simone Caruso wrote: On 22/07/2010 19:31, Fredric Fredricson wrote: Hi all, I am working on a small REST-based web service that I write in php. I have a single PHP-script and I want Apache to route all requests to a specific location and below to my php script. did

[us...@httpd] Config for a PHP REST web service

2010-07-22 Thread Fredric Fredricson
Hi all, I am working on a small REST-based web service that I write in php. I have a single PHP-script and I want Apache to route all requests to a specific location and below to my php script. This is how I did it: LocationMatch ^/pathtomyservice(.*) Limit GET POST PUT DELETE OPTIONS

Re: [us...@httpd] Config for a PHP REST web service

2010-07-22 Thread Simone Caruso
On 22/07/2010 19:31, Fredric Fredricson wrote: Hi all, I am working on a small REST-based web service that I write in php. I have a single PHP-script and I want Apache to route all requests to a specific location and below to my php script. did u try mod_rewrite? RewriteRule ^(.*)$