Weird error with linkfreeze rule

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Weird error with linkfreeze rule

01 Aug 2012, 16:04

Hello

I'm running iis 7.5 with windows 2008r2. I have application pool of v4.0 and classic and just the default install of Ape. in my httpd.conf I have setenv mod_linkfreeze uncommented as well as the module load for linkfreeze. When I have just that and the following rewrite in .htaccess:

RewriteEngine On
RewriteRule . - [G]

I get the page is gone, which tells me that the install for Ape went okay and all should be well however. When I put the following LinkFreezeRule in I get an error in my apache logs and the default page of the site returns an internal server error. Possible I'm doing something wrong but the rule seems pretty simple overall. I put this in my .htaccess file:

RewriteEngine On
LinkFreezeRule ~~~ "asp=htm"

This returns the following error in my error_log
.htaccess (4) / Internal Error - Exception in LinkFreeze_module: Object reference not set to an instance of an object.

Any ideas as to what is going on, I'm stumped.

Thanks

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

Re: Weird error with linkfreeze rule

02 Aug 2012, 04:38

Hello,

I think you just need to enable linkfreeze like this:

SetEnv mod_linkfreeze
LinkFreezeRule ~~~ "asp=htm"

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

02 Aug 2012, 08:25

It is enabled, at least as far as I can tell, as that line is in the config, my mistake, didn't write it in the post. How would I make sure its being loaded properly since this is IIS, I don't really know it that well, more of a unix/apache guy myself. Thanks

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

02 Aug 2012, 08:40

RewriteEngine On
#RewriteRule .? - [F]
setenv mod_linkfreeze
LinkFreezeRule ~~~ "asp=htm"

my .htaccess file

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

Re: Weird error with linkfreeze rule

02 Aug 2012, 10:21

Hello,

Please check if mod_linkfreeze module is enabled in httpd.conf:

LoadModule linkfreeze_module modules/mod_linkfreeze.so

Also please specify what build of Ape you are using.

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

02 Aug 2012, 10:41

It is enabled in the httpd.conf, but I don't see any modules directory in the install, is that normal? Speaking of the httpd.conf, the one it seems to be looking for is in c:\Program Files(x86)\Helicon\Ape\httpd.conf. This is correct I'm assuming?

Using the version I downloaded yesterday,

Version 3.0.0.76. The trial still have 44 days to go.

Thanks

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

Re: Weird error with linkfreeze rule

02 Aug 2012, 11:12

"It is enabled in the httpd.conf, but I don't see any modules directory in the install, is that normal?"
- yes, that's ok.

"Speaking of the httpd.conf, the one it seems to be looking for is in c:\Program Files(x86)\Helicon\Ape\httpd.conf. This is correct I'm assuming?"
- Yes, that's correct

Please try to change the application pool mode to Integrated (if possible) just for testing.
Also please try to check if any other modules of Ape are working.

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

02 Aug 2012, 11:16

I've tried to change it to Integrated and the site doesn't work with it that way unfortunately. What other modules of Ape would I try, I'm not familiar with any of them. Could you please provide an example of how to check?

Thanks

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

Re: Weird error with linkfreeze rule

03 Aug 2012, 04:40

Let's try to use proxy. Put the following lines into your .htaccess:

ProxyPass /testtest/ http://www.google.com/
ProxyPassReverse /testtest/ http://www.google.com/
ProxyPassReverseCookieDomain your.localsite.com www.google.com

Replace "your.localsite.com" with the name of your local site (where you put the rules) and make a request to your.localsite.com/testtest.
If you get the Google page, proxy works, otherwise please report what result you get.

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

03 Aug 2012, 09:04

I did this and I keep getting the following error in the error_logs:

invalid proxypass proxypassmatch parameter parameter must form key value

I tried what you had below, I tried this:

ProxyPass /testtest http://www.google.com/ max=20 ttl=12- retry=300

All give me the same error, what am I doing wrong. I should only have to put:

ProxyPass /testtest/ http://www.google.com/
ProxyPassReverse /testtest/ http://www.google.com/

and have the proxy work.

Thanks

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

03 Aug 2012, 09:12

The full log messages

[proxy_module] (4) [/] System.Collections.Generic.List`1[System.String]: Invalid ProxyPass|ProxyPassMatch parameter. Parameter must be in the form 'key=value'

proxy_module] (4) [/] System.Collections.Generic.List`1[System.String]: Invalid ProxyPass|ProxyPassMatch parameter. Parameter must be in the form 'key=value'
[8/3/2012 5:08:52 AM] [ConfigLoader] (4) [/] \\snas01\www_statfox\site\.htaccess(6): Unknown Error in the proxy_module.
Line: ProxyPass /testtest http://www.google.com
Error in the proxy_module.
Line: ProxyPass /testtest http://www.google.com
Incorrect syntax proxypass /testtest http://www.google.com

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

Re: Weird error with linkfreeze rule

03 Aug 2012, 10:21

Hello,

I think it was not the best idea to test Ape functionality using proxy... I see that Ape is operating and the logs are written, so the problem might be related specifically to mod_linkfreeze.
Could you give the link to the page where the links are supposed to be "frozen" and indicate some specific link on this page which should be transformed and how it should look after transformation.


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

Re: Weird error with linkfreeze rule

03 Aug 2012, 10:39

Is it just a misprint that you have different domain names in original and desired URLs?

And as for your rule, it should be like this:

SetEnv mod_linkfreeze
LinkFreezeRule ~~~ "asp=htm" [ AbsLinks,MoveExt ]

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

03 Aug 2012, 10:43

Yes, that's my fault on the typo...the domain should be statfox.com, sorry about that.

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

03 Aug 2012, 10:50

I put that rule in and now I'm back to where I started, an apache 500 error with this in the error_log:

[8/3/2012 6:45:40 AM] [.htaccess] (4) [/] Internal error - exception in linkfreeze_module:
Object reference not set to an instance of an object.

My .htaccess file has just what you'd said in the last post.

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

Re: Weird error with linkfreeze rule

06 Aug 2012, 06:18

Hello,

can we arrange an online meeting to be able to try it live and try fix it?
If yes, please rend us the invitation to [email protected] with reference to this post.
And please specify what time zone you are in and what time would be fine for you.

User avatar
Posts: 11
Joined: 01 Aug 2012, 15:54

Re: Weird error with linkfreeze rule

06 Aug 2012, 09:13

Sure, that's fine, I will send a mail to that address. Thanks for all your help, appreciate it.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 20 guests