This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Which Route to Take
Author
Message |
chrisv
Newbie


Joined: 02 May 2011
Location: United States
Posts: 6
Posted: 02 May 2011 at 10:08am

Greetings,
A while back I needed support for mod-rewrite and after searching for a solution on iis6, I went with an application from Micronovae (http://micronovae.com/). We also had multiple different sites being hosted and some had secured folders that were done through windows control panel (remove iuser account on a folder, then add a windows user account so that it would ask for user/pass to view folder). All of this worked well, but now I'm in the process of moving all of the sites on that server to a new box.

In comes new server running Win2008+IIS7+php+mysql. For lack of understanding, I went with Micronovae again to handle the .htaccess files that some sites were using so when I moved the site from old server to new server; and it works very well. So that's one problem handled; my other problem is what to do with the random password protected folders? I do not want to use windows user accounts. After some digging @IIS.net, I found HeliconTech's APE application for IIS7. In reading about it, it seems it would handle everything Micronovae's Re-Write app does, but more. I saw that it handled many of the "mod_" function and I think I understand it does handle password protected items.

Is this true?
I'm looking at disabling the already installed micronovae mod re-write (that only does re-write) and going with APE for everything.

Does anyone else have any suggestions, similar stories, etc?

Thanks,
Chris.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 04 May 2011 at 3:03am

Hello, Chris

What you read about Ape is true. It supports over 30 Apache modules on IIS7.
And it does support various auth options, so you'll be able to set up password protection you need.
Here's some info on that http://www.helicontech.com/articles/http-authentication-and-authorization/

"I do not want to use windows user accounts"
Here's the article related to this issue http://www.helicontech.com/articles/site-authentication-not-using-windows-users/

__________________
Regards,
Anton
Back to Top
 
chrisv
Newbie


Joined: 02 May 2011
Location: United States
Posts: 6
Posted: 04 May 2011 at 8:29am

Thanks for the links Anton, reading about them now.

Do you know if there be any problems with the install if the server I would like to implement APE on has multiple sites on it instead of just one default web-site?
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 05 May 2011 at 3:20am

"Do you know if there be any problems with the install if the server I would like to implement APE on has multiple sites on it instead of just
one default web-site?"
- this has absolutely no effect on correctness of Ape installation.

__________________
Regards,
Anton
Back to Top
 
chrisv
Newbie


Joined: 02 May 2011
Location: United States
Posts: 6
Posted: 05 May 2011 at 8:52am

Thanks for all of the information Anton.
Hopefully, over the weekend I'll be able to set this up on a test server and see what it can do.
Back to Top
 
chrisv
Newbie


Joined: 02 May 2011
Location: United States
Posts: 6
Posted: 08 May 2011 at 4:17am

I downloaded the 45 day trial and installed it on a test system to play with. Seems pretty straight forward on things. I love the edit ability of the .htaccess files directly from there.

However, I'm having a problem with URLs that I can't figure out what is going on.

BTW - thanks for the articles on folder/file auth w/o windows accounts. Tried it and it works with no problem at all.

The problem I'm having with URLs is a 400.0 Bad Request (Module: Helicon.Ape).
It is happening on sites, such as a shopping cart site, where the url of the products is based off the name of the product. So a product named "Animal Print Baby Shoes – 2-3605" would end up being something like ".com/products/Animal-Print-Baby-Shoes-–-2%2d3605.html" but I'm getting an error 400.0 Bad Request.

Another example is for a product category called "Scripture/Inspirational T-Shirts" which results a link of ".com\categories\Scripture{47}Inspirational-T%2dShirts\"

And basic page names like "Shipping & Handling" are "com\pages\Shipping-&-Returns.html"

If I open up IIS, Request Filtering, Right click/edit, Everything is checked, 30000000 max allowed content length, 4096 max url length, 2048 max query string.

Any Ideas?


Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 10 May 2011 at 2:33am

Could you please enable logging in httpd.conf by putting/uncommenting:

LogLevel debug
RewriteLogLevel 9

Then make one of the requests in question and attach the logs records to your post.

__________________
Regards,
Anton
Back to Top
 
chrisv
Newbie


Joined: 02 May 2011
Location: United States
Posts: 6
Posted: 10 May 2011 at 9:16am

Sure thing Anton,
Here's what I'm getting when I do a couple different thing. When I enabled the log files, they grew super fast,  and a lot of the info repeats itself. I tried to grab an error line; hope what's below is enough to go on.

Also, is there a way to only turn on logging for one site and log it's rewrite errors rather than for all sites?

On one site, when I click a link that has an "&" in the name, like "Shipping & Receiving"
173.162.24.37 173.162.24.37  [10/May/2011:08:05:16] [www.ltreasures.net/sid#38][rid#6599358/initial] (1) [perdir c:\inetpub\wwwroot\ltreasures.net\] init rewrite engine with /index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:16] [www.ltreasures.net/sid#38][rid#6599358/initial] (5) [perdir c:\inetpub\wwwroot\ltreasures.net\] strip matching prefix: /index.php -> index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:16] [www.ltreasures.net/sid#38][rid#6599358/initial] (3) [perdir c:\inetpub\wwwroot\ltreasures.net\] applying pattern . to uri index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:16] [www.ltreasures.net/sid#38][rid#6599358/initial] (4) [perdir c:\inetpub\wwwroot\ltreasures.net\] RewriteCond: input='c:\inetpub\wwwroot\ltreasures.net\index.php' pattern='-f' => not-matched



And here's one where the product name has a character in the title "Sterling Pendant and Earring Set - Diamond Shape"
173.162.24.37 173.162.24.37  [10/May/2011:08:05:25] [www.silvercollectionsjewelry.com/sid#40][rid#35896081/initial] (1) [perdir c:\inetpub\wwwroot\silvercollectionsjewelry.com\] init rewrite engine with /taskmanager.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:25] [www.silvercollectionsjewelry.com/sid#40][rid#35896081/initial] (5) [perdir c:\inetpub\wwwroot\silvercollectionsjewelry.com\] strip matching prefix: /taskmanager.php -> taskmanager.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:25] [www.silvercollectionsjewelry.com/sid#40][rid#35896081/initial] (3) [perdir c:\inetpub\wwwroot\silvercollectionsjewelry.com\] applying pattern robots.txt to uri taskmanager.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:25] [www.silvercollectionsjewelry.com/sid#40][rid#35896081/initial] (5) [perdir c:\inetpub\wwwroot\silvercollectionsjewelry.com\] strip matching prefix: /taskmanager.php -> taskmanager.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:25] [www.silvercollectionsjewelry.com/sid#40][rid#35896081/initial] (3) [perdir c:\inetpub\wwwroot\silvercollectionsjewelry.com\] applying pattern . to uri taskmanager.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:25] [www.silvercollectionsjewelry.com/sid#40][rid#35896081/initial] (4) [perdir c:\inetpub\wwwroot\silvercollectionsjewelry.com\] RewriteCond: input='c:\inetpub\wwwroot\silvercollectionsjewelry.com\taskmanager.php' pattern='-f' => not-matched



On this wordpress site that's installed into a directory (domain.com/staff/) if you have permalinks turned on with %postname%, the links should be ".com/staff/PageName" but when you click it, it takes you to the ".com" with the site's default "page cannot be found"
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (1) [perdir c:\inetpub\wwwroot\cplant.com\] init rewrite engine with /staff/forms/
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (5) [perdir c:\inetpub\wwwroot\cplant.com\] strip matching prefix: /staff/forms/ -> staff/forms/
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (3) [perdir c:\inetpub\wwwroot\cplant.com\] applying pattern .* to uri staff/forms/
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (4) [perdir c:\inetpub\wwwroot\cplant.com\] RewriteCond: input='C:\inetpub\wwwroot\cplant.com\staff\forms\' pattern='-f' => matched
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (4) [perdir c:\inetpub\wwwroot\cplant.com\] RewriteCond: input='C:\inetpub\wwwroot\cplant.com\staff\forms\' pattern='-d' => matched
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (5) [perdir c:\inetpub\wwwroot\cplant.com\] add per-dir prefix: index.php -> /index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (1) [perdir c:\inetpub\wwwroot\cplant.com\] Rewrite URL to >> /index.php [REWRITE]
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#55531289/initial] (1) [perdir c:\inetpub\wwwroot\cplant.com\] Rewrite URL /staff/forms/ to >> /index.php [INTERNAL_REDIRECT]
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (5) [perdir c:\inetpub\wwwroot\cplant.com\] strip matching prefix: /index.php -> index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (3) [perdir c:\inetpub\wwwroot\cplant.com\] applying pattern .* to uri index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (4) [perdir c:\inetpub\wwwroot\cplant.com\] RewriteCond: input='C:\inetpub\wwwroot\cplant.com\index.php' pattern='-f' => not-matched
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (5) [perdir c:\inetpub\wwwroot\cplant.com\] strip matching prefix: /index.php -> index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (3) [perdir c:\inetpub\wwwroot\cplant.com\] applying pattern (.*) to uri index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (4) [perdir c:\inetpub\wwwroot\cplant.com\] RewriteCond: input='www.cplant.com' pattern='^cplant.com' => not-matched
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (5) [perdir c:\inetpub\wwwroot\cplant.com\] strip matching prefix: /index.php -> index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (3) [perdir c:\inetpub\wwwroot\cplant.com\] applying pattern ^(.*)$ to uri index.php
173.162.24.37 173.162.24.37  [10/May/2011:08:05:49] [www.cplant.com/sid#7][rid#38624525/initial/1] (4) [perdir c:\inetpub\wwwroot\cplant.com\] RewriteCond: input='443' pattern='80' => not-matched

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 11 May 2011 at 2:59am

Sorry, one more thing I forgot to ask is the config you are using.
And one clarification: do these problematic URLs contain specific characters in the main part or in query string?
Can you show requested URLs in full.

__________________
Regards,
Anton
Back to Top
 
chrisv
Newbie


Joined: 02 May 2011
Location: United States
Posts: 6
Posted: 12 May 2011 at 1:54pm

Hey Anton,
I was digging through pages and pages of google searches last night and ended up finding some article at Microsoft that talked about a regkey for .net framework 1.1. Now supposedly you don't need this regkey unless you are on version 1.0. I looked at our server and it had .net framework 4.0 which was supposed to fix the problems back in 1.0 with the URL Bad Requests that I'm having.

Anyway, I decided to try it out anyway and this is what I did:

added
DWORD: VerificationCompatibility = 1
TO: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET

start/run/iisreset

Try the links again and they work without a problem.
At least the links that have "&", "-", and ". before the .htm" are all working. I haven't had a chance to try out the WordPress site I was messing with, but I'm hoping this fixed it as well.

I added the above regkey, iisreset, it works, remove the key, iisreset, doesn't work...chalk it up to a microsoft thing?

What are your thoughts?
Thanks for all the help!
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 16 May 2011 at 3:46am

Yes, this is quite likely to be a Microsoft-related problem, as we've never received similar reports.
I guess you should stick to the solution you found.

__________________
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