Need help creating restful endpoints
6 posts
• Page 1 of 1
Need help creating restful endpoints
IIS 7.5
Windows Web Server 2008 R2
64bit
Coldfusion 9.01
ISAPI Rewrite 3.1.0.96 (registered)
This URL works:
https://website.com/api/index.cfm/case/view/2340.1.json
I want to remove the "index.cfm" from the URL. Here is my rewrite code:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.96
RewriteEngine On
RewriteBase /api/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? index.cfm/%{REQUEST_URI} [QSA,L]
This works on my development box but not in production. Here is the error that is returned:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Ultimately, I want the URL to be in this format:
https://website.com/api/case/view/2340.1.json
The Rewrite.log in the application directory is empty.
Thanks!
Windows Web Server 2008 R2
64bit
Coldfusion 9.01
ISAPI Rewrite 3.1.0.96 (registered)
This URL works:
https://website.com/api/index.cfm/case/view/2340.1.json
I want to remove the "index.cfm" from the URL. Here is my rewrite code:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.96
RewriteEngine On
RewriteBase /api/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? index.cfm/%{REQUEST_URI} [QSA,L]
This works on my development box but not in production. Here is the error that is returned:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Ultimately, I want the URL to be in this format:
https://website.com/api/case/view/2340.1.json
The Rewrite.log in the application directory is empty.
Thanks!
Re: Need help creating restful endpoints
After enabling logging, I see this in the Rewrite.log:
[1/25/2013 14:23:37] Begin watch directory changes failed (\\server1\xdrive\web applications\applications\api\): Insufficient permissions. (Access is denied.)
[1/25/2013 14:23:37] Begin watch directory changes failed (\\server1\xdrive\web applications\applications\api\): Insufficient permissions. (Access is denied.)
Re: Need help creating restful endpoints
How do I give the program permissions to the network resource? Is there a service that needs to be assigned a domain user with rights to the network resource?
Re: Need help creating restful endpoints
Thanks for the link.
You will have to update your documentation for IIS 7.5.
Here is what I did:
Add domain account to local IIS_IUSRS group;
Add domain account to "log in as a service" under the local policy;
Add domain account to the "app pool properties" in IIS;
Add domain account to the network share where the .htaccess file is;
You will have to update your documentation for IIS 7.5.
Here is what I did:
Add domain account to local IIS_IUSRS group;
Add domain account to "log in as a service" under the local policy;
Add domain account to the "app pool properties" in IIS;
Add domain account to the network share where the .htaccess file is;
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Need help creating restful endpoints
That's a good call. Thanks.
Regards
Andrew
Regards
Andrew
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests