This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Problem after moving Site to new server.
Author
Message |
garymgordon
Newbie


Joined: 12 April 2008
Location: United States
Posts: 4
Posted: 28 July 2010 at 12:26pm

Problem after moving Site to new server.

Everything was working perfectly fine on a previous server, running the same IIS7 and Windows 2008. (no apache)  The server was the only thing that really changed.  It was just moved to a new box.

I am guessing I just didn't set something up correctly and missed something in the move.  I am hoping that someone might know what I need to do.

You can see the issue if you go to http://www.compassionforcamden.org/cfcarticles/  and try to look at an article.  You should get a 500 internal server error.  You'll notice it is trying to find the article using isapi rewrite, but it's not finding it.

The folders after cfcarticles don't really exist.  But that previously was fine and how it worked.

I have an httpd.ini file that includes the following:

[ISAPI_Rewrite]
RewriteRule /categories(.*) /categories.php?$1 [I,L]
RewriteRule /pages(.*) /pages.php?$1 [I,L]
RewriteRule /blogrss(.*) /blogrss.php?$1 [I,L]
RewriteRule /blogs(.*) /blogs.php?$1 [I,L]
RewriteRule /search(.*) /search.php?$1 [I,L]
RewriteRule /authors(.*) /authors.php?$1 [I,L]
RewriteRule /articlerss(.*) /articlerss.php?$1 [I,L]
RewriteRule /newsrss(.*) /newsrss.php?$1 [I,L]
RewriteRule /news(.*) /news.php?$1 [I,L]
RewriteRule /articles(.*) /articles.php?$1 [I,L]

Can you tell me what I might need to update on the server, the website, permissions, etc., to enable this to work again?? 

I currently have write permissions set on the entire folder of cfcarticles.

Help???  Please.  I'm going nuts and don't know where to start.

Thanks,

Gary

Back to Top Visit garymgordon's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 July 2010 at 2:32am

Please try to fix your config like this:

[ISAPI_Rewrite]
RewriteRule /cfcarticles/categories(.*) /cfcarticles/cfcarticles/categories.php\?$1 [I,L]
RewriteRule /cfcarticles/pages(.*) /cfcarticles/pages.php\?$1 [I,L]
RewriteRule /cfcarticles/blogrss(.*) /cfcarticles/blogrss.php\?$1 [I,L]
RewriteRule /cfcarticles/blogs(.*) /cfcarticles/blogs.php\?$1 [I,L]
RewriteRule /cfcarticles/search(.*) /cfcarticles/search.php\?$1 [I,L]
RewriteRule /cfcarticles/authors(.*) /cfcarticles/authors.php\?$1 [I,L]
RewriteRule /cfcarticles/articlerss(.*) /cfcarticles/articlerss.php\?$1 [I,L]
RewriteRule /cfcarticles/newsrss(.*) /cfcarticles/newsrss.php\?$1 [I,L]
RewriteRule /cfcarticles/news(.*) /cfcarticles/news.php\?$1 [I,L]
RewriteRule /cfcarticles/articles(.*) /cfcarticles/articles.php\?$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
garymgordon
Newbie


Joined: 12 April 2008
Location: United States
Posts: 4
Posted: 29 July 2010 at 7:37am

I made that change but it still isn't helping.
The httpd.ini file is in the root of the website.  Is that correct?

What else could be causing this?  Do I need to make any changes is IIS7 or set permissions on the .dll files (for isapi rewrite)??

Please let me know what else I should do or need to do or try.

Thanks
Gary
Back to Top Visit garymgordon's Homepage
 
garymgordon
Newbie


Joined: 12 April 2008
Location: United States
Posts: 4
Posted: 29 July 2010 at 8:02am

Additional Questions ...

1.  There are no sub folders called categories, pages, blogrss, blogs, etc.  Do these sub folders, under cfcarticles need to exist physically on the server?

2.  I'm curious, how does isapi rewrite know where to find the httpd.ini file for use in a website?  Does it have to exist or be placed in a special location or folder?

3.  Do the isapi rewrite files (dll, etc.) need special permissions to be granted on Windows 2008 and IIS7?

4.  Anything else I need to do?

Gary

Back to Top Visit garymgordon's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 July 2010 at 8:39am

"The httpd.ini file is in the root of the website. Is that correct?"
- yes

"Do I need to make any changes is IIS7 or set permissions on the .dll files (for isapi rewrite)?"
- you need to grant read permissions to the user running the app pool with ISAPI_Rewrite on ISAPI_Rewrite dlls, config files (httpd.ini) and
the site root itself

"There are no sub folders called categories, pages, blogrss, blogs, etc. Do these sub folders, under cfcarticles need to exist physically on
the server?"
- no

"I'm curious, how does isapi rewrite know where to find the httpd.ini file for use in a website? Does it have to exist or be placed in a
special location or folder?"
- no, ISAPI_Rewrite will look through all sites and folders to find all httpd.ini's available.

"Do the isapi rewrite files (dll, etc.) need special permissions to be granted on Windows 2008 and IIS7?"
- nothing special. just what I specified above.

Also please have a look at httpd.parse.errors file for possible messages.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum