This is a migrated thread and some comments may be shown as answers.

Php and Web.config

4 Answers 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 29 Jan 2011, 04:55 AM
Hi,

I have a wordpress blog sitting in one of the folders of my website, which is using RadCompression. I found that all log-in requests to the php blog were not processed, because all requests were going through the RadCompression module, which duly froze when it did not know how to handle the php log-in request. One of the guys from the hosting site fixed this by adding a Web.config file to that Wordpress folder:
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false">
<remove name="RadCompression"/>
</modules>
<httpErrors errorMode="Detailed" />
<rewrite>
    <rules>
        <rule name="Main Rule" stopProcessing="true">
            <match url=".*" />
            <conditions logicalGrouping="MatchAll">
                <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>
</system.webServer>
</configuration>

This worked fine.

Here's the part I don't understand. He also made a change to the main Web.config file (for the whole site). Namely, he added two appSettings items:
<appSettings>
    <add key="Telerik.Skin" value="Black"/>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/><!-- this was added -->
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/><!-- this was also added -->
</appSettings>

Why is this necessary ? (It breaks if I remove those two new keys).
And does this mean I am using the TelerikCdn?

Cheers

4 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 02 Feb 2011, 02:56 PM
Hi David,

Another approach you can use to exclude the php pages from being compressed with RadCompression can be found here.

Regarding the Telerik CDN: It is not enabled by default.


Best wishes,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
David
Top achievements
Rank 1
answered on 04 Feb 2011, 09:01 AM
Hi Iana ,
I do not understand why I need these two appSettings:
<add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>

Why are they necessary?
0
Accepted
Iana Tsolova
Telerik team
answered on 04 Feb 2011, 09:51 AM
Hi David,

It seems somehow you have enabled the Telerik CDN. However this is disturbing your php site in some way. And that is why you should disable it as suggested by the person added it.

Regards,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
David
Top achievements
Rank 1
answered on 05 Feb 2011, 02:12 PM
Thanks again. I have no idea how CDN has been enabled (before being disabled). But your answer makes sense.

Cheers!
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
David
Top achievements
Rank 1
Share this question
or