Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Updating httpd.ini; changes not working Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bgordon
Newbie
Newbie


Joined: 07 May 2008
Online Status: Offline
Posts: 7
Posted: 07 May 2008 at 1:52pm | IP Logged Quote bgordon

Is there something I need to do after modifying the httpd.ini file in order for the changes I've made to take effect?

Thanks.  -bg

Back to Top View bgordon's Profile Search for other posts by bgordon
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6446
Posted: 08 May 2008 at 7:24am | IP Logged Quote Yaroslav

Updates should be loaded automatically but ISAPI_Rewrite should at least have permissions to read this file.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
bgordon
Newbie
Newbie


Joined: 07 May 2008
Online Status: Offline
Posts: 7
Posted: 08 May 2008 at 9:17am | IP Logged Quote bgordon

I'm not sure where I'm going wrong then.  I've given Read and Execute rights to IIS_WPG group to the the httpd.ini file in the website root directory.

In this httpd.ini file, the first rewrite is working, but the second one is not:

[ISAPI_Rewrite]

# Redirect any URLs containing the internal=1 variable to same URL without it
RewriteRule ^(.*)?(internal=1&|\?internal=1|&internal=1&|&internal=1)(.*) $1$3 [RP]

# Force proper subdomain on all requests
RewriteCond %HTTP_HOST ^domainname\.com
RewriteRule ^/(.*) http://www.domainname.com/$1 [RP,L]

There is nothing in the httpd.parse.errors file.

I've tried other code that works in the Regular Expression Test Utility in place of the second rule, and it doesn't work either.

Server is Windows 2003 Server 32-bit.

Thanks.  -bg

Back to Top View bgordon's Profile Search for other posts by bgordon
 
bgordon
Newbie
Newbie


Joined: 07 May 2008
Online Status: Offline
Posts: 7
Posted: 08 May 2008 at 11:54am | IP Logged Quote bgordon

Ack!!!  It now seems to be working, and I didn't change anything.

I hate it when that happens...  -bg
Back to Top View bgordon's Profile Search for other posts by bgordon
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7373
Posted: 16 May 2008 at 4:58pm | IP Logged Quote Lexey

Configuration file is being reloaded only upon a second request to a related web site. Also, if some program (for example, your text editor) holds write lock on a configuration file it can not be reloaded at all.
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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