RewriteLog not RewriteLogging :(

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 3
Joined: 17 Nov 2014, 15:51

RewriteLog not RewriteLogging :(

17 Nov 2014, 15:59

Every so often I need to tweak the rules and debug stuff so I try to enable full logging as per the docs:

RewriteLogLevel 9
LogLevel debug

Sometimes it works but but most of the time it doesn't seem to want to and I cannot work out why. I restart both the website and webserver after changing the rules (not sure if I need to?). I do have a rewrite.log but it is 0 bytes. I get a small msg in the error.log which seems OK:

[2014-11-17 18:46:51.636] [LicenseManager] Site with id=5 is working with free license
[2014-11-17 18:46:51.689] [cache_module] items stored in the cache: 0; bytes available for the cache: 5050043399, physical memory limit: 99%

The RewriteRules I have in place, working, work :) The ones I don' I need to debug ;)

A couple of other comments/observations:

When I edit the server-level httpd.conf to enable logging I note that the file it is using is:

C:\Windows\assembly\GAC_MSIL\Helicon.Ape.Editor\3.1.0.124__95bfbfd1a38437eb\httpd.conf

Is that where I would expect it to be? I didn't set that, that is how it is from install

Also I am running 3.1.0.124 as when I updated I found that it didn't seem to work at all (WS2008). Even in this version I find that if I go to run the Ape Debugger the IIS mgmt console crashes :( I have tried several installs and right now this one seems stable enough to work with (the above issues notwithstanding!)

Any ideas why I can't get my rewrite log working?

Thanks,
Mark

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: RewriteLog not RewriteLogging :(

18 Nov 2014, 05:54

Hello, Mark

As far as I understand, you are using Free version of Ape, right?
Usually the logging issues are related to insufficient permissions, so please check them for Ape install folder, dlls, configs and log files inside it.
BTW, are you putting the logging directives in httpd.conf or .htaccess?

User avatar
Posts: 3
Joined: 17 Nov 2014, 15:51

Re: RewriteLog not RewriteLogging :(

18 Nov 2014, 09:13

Hi, yes this is the version of Ape - and indeed I would be happy to purchase a licence for a stable,working environment, it's just you have a free licence for one site and that's all I need ;)

OK it seems to be that I was editing the wrong httpd.conf file - I was editing the file (as per orig post) that comes up in the Ape management console for the server root (the one that appears to be in the GAC) - when I edit the httpd.conf in the installation directory it all seems to burst into life - how come the other file is showing up in the console?

Any comments on the crashing Ape Debugger and version issues?

TIA,
Mark

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: RewriteLog not RewriteLogging :(

20 Nov 2014, 07:00

Hello, Mark

It might be a bug in Free version, I'll report to the dev team.
As for the version, we have recently released build 145 with new important fixes, so you may consider updating.
Ape Debugger does have some instabilities, so it's advisable to disable it whenever possible.

User avatar
Posts: 3
Joined: 17 Nov 2014, 15:51

Re: RewriteLog not RewriteLogging :(

20 Nov 2014, 14:06

I tried the 145 build but can only find the standard installer not the _free version. When I install that I find it installs OK and the configs are all there but any rewrite rule tests just result in a helicon 404 page asking for a Registartion (sic) code, have gone back to 124_free for now - what am I doing wrong?

Ta,
Mark

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: RewriteLog not RewriteLogging :(

21 Nov 2014, 07:55

Hello, Mark

Sorry, it was a very recent change and we do not have Free version of Ape anymore and its support is discontinued.
I have sent you a temporary (45-day) trial in Private message for you to try Full build 145 and if you are satisfied with the results, I hope you will buy the license afterwards.

User avatar
Posts: 2
Joined: 08 Dec 2014, 17:17

Re: RewriteLog not RewriteLogging :(

08 Dec 2014, 17:41

Hello!

I'm trying the 145 version, but it does not work the rewrite. More website is on my IIS 8.5 (win 2012R2) server so I do not know how to tested whether it works?
Every page is 404 not a 403 :(

(We are testing right now, you might want to buy the product)

Please help

Thx

Tamas

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: RewriteLog not RewriteLogging :(

09 Dec 2014, 08:44

Hello, Tamas

- What rules do you have in the config?
- What test request do you make?
- What result do expect?
- provide rewrite.log records for the test request

User avatar
Posts: 2
Joined: 08 Dec 2014, 17:17

Re: RewriteLog not RewriteLogging :(

09 Dec 2014, 17:14

Hello Anton!

It seems to me that the Default Site (no host name) works perfectly, go to the rewrite. On the site where host name not blank is not right with the rewrite
Atached setting zip file.

What is wrong? Specify the host name does not matter?

Tamas
Attachments
ape-.zip
(27.3 KiB) Downloaded 1584 times

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: RewriteLog not RewriteLogging :(

10 Dec 2014, 09:01

I see in web.config you have the Wordpress rules for URLRewrite that may interfere with the identical rules you have in Ape .htaccess.
Please try to remove these rules from web.config:

<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule></rules>
</rewrite>

Also, you have the following misspelled command at the bottom of your .htaccess: "ewriteBase /"
Please fix it.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 33 guests