Quick Nav:  Online Store   |   Login | Register

Position of the PageBlaster entry in the web.config file

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Gilbert Vanden Borre
<50 Posts
Posts:44


06/14/2007 9:40 AM  

Hi John

I'm a little confused... I'm updated a few sites with the last snapsis pageblaster (version 2.2.4).
In this thread
http://www.snapsis.com/Support/SnapsisnbspSupport/tabid/601/forumid/9/postid/5323/view/topic/Default.aspx
You've said...
Also, make sure that the PageBlaster entry in the HttpModules section of web.config is the first entry (before UrlRewriter).

In this thread and also in the Snapsis.PageBlaster.readme.txt you said:
http://www.snapsis.com/Support/SnapsisnbspSupport/tabid/601/forumid/9/postid/5745/view/topic/Default.aspx
that the PageBlaster entry in the HttpModules section of web.config had to be set after UrlRewriter...

What's the difference?
Why you have said this in this thread?
http://www.snapsis.com/Support/SnapsisnbspSupport/tabid/601/forumid/9/postid/5323/view/topic/Default.aspx


Vriendelijke groeten
Gilbert Vanden Borre
John Mitchell
Posts:3248


06/14/2007 10:24 AM  

Hi Gilbert,
The difference is subtle, but may be needed in certain situations.

If the UrlRewriter is listed after the PageBlaster, then PageBlaster will see links as they look after they have been re-written, so the excludes may need to be written differently. 
In other words, for a link that is a Friendly URL like this :
          http://www.mysite.com/Home/tabid/36/default.aspx
PageBLaster will actually see the Link as :
         http://www.mysite.com/default.aspx?tabid=36

On the other hand, if UrlRewriter is listed before the PageBlaster , then PageBlaster will see the link as it looks in the address bar before it is Rewritten.  So in this case what you see in the address bar is also what PageBlaster uses to compare for excludes, etc.

The rule for HttpModules is that the First One in the list will be the Last One executed known as First-In-Last-Out (FILO).  For PageBlaster this is important to make it near the first of the list since it does compression on the page output.  Otherwise all the rest of the modules will only get the compressed page output to work with.  For the UrlRewriter this doesn't matter since it is only manipulating the Url, and you can move it around to fit your situation.

My main goal in the readme for the install is to get people to list it where what they see in the address bar is what they can also use for excludes.

 

Gilbert Vanden Borre
<50 Posts
Posts:44


06/14/2007 11:49 AM  
Hi John

If I understand you correctly...
When you don't exclude a whole path of a page it doesn't matter where you put the PageBlaster entry (before or after UrlRewriter).
If you only use excludes then it is better to put the PageBlaster entry before UrlRewriter.
Is that correct?

Vriendelijke groeten
Gilbert Vanden Borre
John Mitchell
Posts:3248


06/14/2007 11:57 AM  
Not really. What it all boils down to is if you expect or need to use the slash (/) character or the equals (=) character in your exclude paths and replacements for virtual paths. And if you use a different Url rewriter then that may be different.

9 times out of 10 you will probably want to put PageBlaster after the UrlRewriter so you can create your excludes and paths based on exactly what you see in the Url address.
Gilbert Vanden Borre
<50 Posts
Posts:44


06/17/2007 12:04 PM  

Thanks John


Vriendelijke groeten
Gilbert Vanden Borre
Gilbert Vanden Borre
<50 Posts
Posts:44


07/24/2007 3:08 AM  

Hi John

I've updated a few dnn sites to dnn 04.05.04.
And now I want to setup pageblaster again.
I've seen that there are a few lines more in the HttpModules section in web.config

[!-- HttpModules for Common Functionality --]
[httpModules]
[add name="Compression" type="DotNetNuke.HttpModules.Compression.HttpModule, DotNetNuke.HttpModules.Compression"/]
[add name="RequestFilter" type="DotNetNuke.HttpModules.Compression.RequestFilter.HttpModule, DotNetNuke.HttpModules.Compression" /]
[add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules.UrlRewrite"/]
[add name="PageBlaster" type="Snapsis.HttpModules.PageBlaster.PageBlasterModule, Snapsis.HttpModules.PageBlaster" /]
[/httpModules]

In your Snapsis.PageBlaster.readme.txt file
You've said that you've to remove the following line:
[!-- [add name="Compression" type="DotNetNuke.HttpModules.Compression.HttpModule, DotNetNuke.HttpModules.Compression"/] --]
(do not use the compression from dnn)

I think that in the new dnn version 04.05.04 I've to remove also the following line:
[!-- [add name="RequestFilter" type="DotNetNuke.HttpModules.Compression.RequestFilter.HttpModule, DotNetNuke.HttpModules.Compression" /] --]

Is that correct?...
What does the requestFilter exactly?

PS
The < is changed to [
The > is changed to ]
in the above code.


Vriendelijke groeten
Gilbert Vanden Borre
Host Account
<100 Posts
Posts:97


07/24/2007 7:15 AM  

Hi Gilbert,
You do not need to remove the request filter, although you may not need it.  It allows you to block, and redirect incoming requests based on parameters in the Request.ServerVariables collection.

Mitchel Sellers has a tutorial on the request filter here:

http://www.mitchelsellers.com/Blogs/tabid/54/articleType/ArticleView/articleId/118/Using-DotNetNuke-Request-Filter.aspx 

Gilbert Vanden Borre
<50 Posts
Posts:44


07/24/2007 7:21 AM  

Hi John

Thanks for your respons...


Vriendelijke groeten
Gilbert Vanden Borre
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Position of the PageBlaster entry in the web.config file



ActiveForums 3.7
Powered by: Snapsis Software