{"id":512,"date":"2009-07-03T18:39:00","date_gmt":"2009-07-03T10:39:00","guid":{"rendered":""},"modified":"2013-11-17T13:09:07","modified_gmt":"2013-11-17T05:09:07","slug":"%e5%9c%a8apache%e4%b8%ad%e9%85%8d%e7%bd%aeasp-net%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/512.html","title":{"rendered":"\u5728Apache\u4e2d\u914d\u7f6eASP.NET\u73af\u5883"},"content":{"rendered":"<p>\u672c\u6587\u524d\u63d0\u662f\u6210\u529f\u5b89\u88c5\u597d\u4e86FrameWork 2.0<\/p>\n<p>\u4e00\u3001\u4e0b\u8f7d\u6240\u9700\u8f6f\u4ef6<\/p>\n<p>1. apache<\/p>\n<p>2.mod_aspdotnet-2.0.0.msi\uff08\u5230\u8fd9\u91cc\u4e0b\u8f7d<a href=\"http:\/\/httpd.apache.org\/modules\/\">http:\/\/httpd.apache.org\/modules\/<\/a>\uff09<\/p>\n<p>\u4e8c\u3001\u5b89\u88c5<\/p>\n<p>1.\u5b89\u88c5apache 2.0.58\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u9700\u8981\u5148\u505c\u6b62IIS \uff08net stop w3svc\uff09<\/p>\n<p>2.\u5b89\u88c5mod_aspdotnet-2.0.0.msi<\/p>\n<p>\u4e09\u3001\u9700\u8981\u914d\u7f6ehttpd.conf \u6587\u4ef6 \u5728\u6587\u4ef6\u672b\u5c3e \u52a0\u4e0b\u9762\u4ee3\u7801<\/p>\n<p># asp.net \u652f\u6301<br \/>\n# \u8fd92\u6761\u914d\u7f6e\u5c5e\u4e8e\u5168\u5c40\u914d\u7f6e\uff0c\u53ef\u653e\u5728\u5176\u5b83\u54cd\u5e94 LoadModule\/AddHandler \u8bed\u53e5\u5757\u540e\u9762<br \/>\n# \u6211\u7684\u914d\u7f6e\u4e2d\uff0c\u4e0b\u9762\u6574\u4e2a\u914d\u7f6e\u5757\u662f\u653e\u5728\u6700\u540e\uff0c\u672a\u5206\u5f00\uff0c\u8fd9\u4e5f\u662f\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406<br \/>\nLoadModule aspdotnet_module &#8220;modules\/mod_aspdotnet.so&#8221;<br \/>\nAddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo<\/p>\n<p># \u4e0b\u9762\u7684\u6574\u6bb5\u914d\u7f6e\u53ef\u4ee5\u653e\u5728\u865a\u62df\u4e3b\u673a\u4e2d<br \/>\n&lt;IfModule mod_aspdotnet.cpp&gt;<\/p>\n<p># Mount the ASP.NET example application<br \/>\n# AspNetMount \u8bed\u53e5\u76f8\u5f53\u4e8e Linux \u4e2d\u7684 mount \u547d\u4ee4\uff0c\u662f\u628aAsp\u7a0b\u5e8f\u76ee\u5f55\u6302\u8f7d\u5230\u4e00\u4e2a URL \u5730\u5740<br \/>\n# \u5982\u679c\u4e0d\u662f\u6574\u4e2a\u7f51\u7ad9\u90fd\u7528Asp\uff0c\u5219\u4e0d\u5e94\u8be5\u6302\u5728\u2018\/\u2019\u4e0b\u3002\u5982\uff1aAspNetMount \/asptool &#8220;D:\\\\www\\\\Apache2\\\\htdocs\\\\aspweb&#8221;<br \/>\n# \u6ce8\u610f\uff1a\u6574\u7ad9\u91c7\u7528\u65f6\uff0c\u5168\u5c40\u7684DocumentRoot \u4e3a &#8220;D:\/www\/Apache2\/htdocs\/aspweb&#8221;<br \/>\nAspNetMount \/&#8221;D:\/PHPnow\/htdocs&#8221;<\/p>\n<p># Map all requests for \/active to the application files<br \/>\n# \u610f\u601d\u662f\u628a\u6240\u6709\u5230\u2018\/asptool\u2019\u7684\u8bf7\u6c42\u6620\u5c04\u5230\u6302\u8f7d\u7684Asp\u7a0b\u5e8f\u76ee\u5f55\u4e0b<br \/>\n# \u6211\u7684\u914d\u7f6e\u4e2d\uff0c\u4e0b\u9762\u4e00\u53e5\u662f\u6ce8\u91ca\u6389\u7684<br \/>\n# Alias \/asptool &#8220;D:\/www\/Apache2\/htdocs\/aspweb&#8221;<\/p>\n<p># Allow asp.net scripts to be executed in the active example<br \/>\n&lt;Directory &#8220;D:\/PHPnow\/htdocs&#8221;&gt;<br \/>\nOptions FollowSymlinks ExecCGI<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\nDirectoryIndex default.htm default.aspx index.html index.aspx<br \/>\n&lt;\/Directory&gt;<br \/>\n# For all virtual ASP.NET webs, we need the aspnet_client files<br \/>\n# to serve the client-side helper scripts.<\/p>\n<p># \u6ce8\u610f\uff1a\u4e0b\u9762\u4e24\u884c\u9700\u8981\u5bf9\u5e94.Net Framework\u5b89\u88c5\u7684\u76ee\u5f55<br \/>\nAliasMatch \/aspnet_client\/system_web\/(\\d+)_(\\d+)_(\\d+)_(\\d+)\/(.*) &#8220;C:\/WIN2003\/Microsoft.NET\/Framework\/v$1.$2.$3\/ASP.NETClientFiles\/$4&#8221;<\/p>\n<p>&lt;Directory &#8220;C:\/Windows\/Microsoft.NET\/Framework\/v*\/ASP.NETClientFiles&#8221;&gt;<br \/>\nOptions FollowSymlinks<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>&lt;\/IfModule&gt;<br \/>\n# asp.net \u652f\u6301 End.<\/p>\n<p>\u5176\u4e2dE:\/www\/http\/asp \u662fASP.NET\u7f51\u9875\u76ee\u5f55<\/p>\n<p>\u91cd\u542fApache\u5c31OK\u4e86<\/p>\n<p>\u8fd0\u884c\u7684\u65f6\u5019\u9519\u8bef\uff0c\u628a\u00a0\u00a0\u00a0 Web.config\u6587\u4ef6\u4e2d\u7b2c46\u884c\u7684\u00a0\u00a0 &lt;!&#8211;&lt;authentication mode=&#8221;Windows&#8221; \/&gt;&#8211;&gt; \u5220\u6389<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u524d\u63d0\u662f\u6210\u529f\u5b89\u88c5\u597d\u4e86FrameWork 2.0 \u4e00\u3001\u4e0b\u8f7d\u6240\u9700\u8f6f\u4ef6 1. apache 2.mod_aspdo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":4622,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions\/4622"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}