ManagedFusion URL重写不工作的Godaddy的第四代主机重写、第四代、主机、工作

2023-09-08 09:02:20 作者:洳淉妸姒嬡沵

我最近转自Godaddy的共享主机到Godaddy的第4代主机或网格托管。

I recently switched from Godaddy shared hosting to Godaddy 4th generation hosting or grid hosting.

根据我的其他问题UrlRewriter.NET使用.NET 4.0和GoDaddy的工作不我无法得到UrlRewriter.NET工作。

As per my other question UrlRewriter.NET with .NET 4.0 and Godaddy not working I was unable to get UrlRewriter.NET to work.

所以,现在我已经尝试ManagedFusion。它的工作原理,但当地并没有GoDaddy的服务器上工作,但错误是不同的,我感觉到,这可能实际工作,我已经做了一些错误的配置。

So now I have tried ManagedFusion. It works locally but does not work on the Godaddy servers BUT the errors are different and I sense that this might actually work and I have done something wrong in the configuration.

所以,我的web.config的设置(精简版)

So my web.config settings are (condensed version)

<configuration>
   <configSections>
      <section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup"/>
   </configSections>

   <managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter">
      <rules engine="Apache">
          <apache defaultFileName="ManagedFusion.Rewriter.txt" />
      </rules>
      <rewriter>
          <proxy useAsyncProxy="true" />
       </rewriter>
    </managedFusion.rewriter>
 <system.web>
     <identity impersonate="false" />

     <httpModules>
        <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/>
     </httpModules>

 </system.web>
<system.webServer>
   <validation validateIntegratedModeConfiguration="false" />
   <modules runAllManagedModulesForAllRequests="true">
      <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter" />
   </modules>
   <handlers>
       <add name="RewriterProxyHandler" preCondition="integratedMode" verb="*" path="RewriterProxy.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </handlers>
    <defaultDocument enabled="false" />
</system.webServer>

我的ManagedFusion.Rewriter.txt是

My ManagedFusion.Rewriter.txt is

RewriteEngine On

RewriteBase /

#
# Campaign

RewriteRule ^/Campaign/List  /Campaign/List.aspx [NC]

现在这个工作完全正常在我的本地机器(Visual Studio 2010中),但是当我把它上传到Godaddy的服务器,我收到了404,说不能找到/Campaign/List.aspx。

Now this works perfectly fine on my local machine (Visual Studio 2010) but when I upload it to Godaddy servers I get a 404 that says it can't find /Campaign/List.aspx.

和在此也去了SSL,顶我不想因为该帐户的SSL证书是一个不同的子域,因此抛出一个SSL错误。

And on top of this it also goes to SSL, which I don't want as the SSL cert on that account is for a different subdomain and hence throws an SSL error.

有什么我做错了什么?看来这次的URL模块处理所有的请求,这看起来像我错误地以某种方式配置它。

Is there something I am doing wrong? It seems this time the URL module is handling all requests and this looks like I have configured it incorrectly somehow.

其他信息

运行IIS 7.0 - 综合管线

Running IIS 7.0 - Integrated Pipeline

.NET 4.0的Godaddy

.NET 4.0 Godaddy

第四代虚拟主机

推荐答案

你好,这其实是一个很常见的 GoDaddy的的问题。我要发布的更新,这个答案后,我回顾我的笔记,并在 codePLEX 网​​站论坛。

Hi this is actually a very common GoDaddy issue. I am going to post an update to this answer after I review my notes and forums on the CodePlex site.

(顺便说一句,我它的主要开发者)

(by the way I am the primary developer of it)

您介意我们借此离线,我们需要聊天来回,所以我能理解你的设置。如 readme.txt文件解释的快速方法来排查问题的方法是打开记录。

You mind if we take this offline, we need to chat back and forth so I can understand your setup. A quick way as explained in the readme.txt to trouble shoot problems is to turn on the logging.

RewriteLog /log/log.txt
RewriteLogLevel 9

GoDaddy的唯一的问题是,你需要创建这个日志目录,并给它写的权限,因为如果我没记错的 GoDaddy的不允许在根写权限。

The only problem with GoDaddy is that you need to create this log directory and give it write permissions, because if I remember right GoDaddy doesn't allow write permissions in the root.