{"id":479,"date":"2005-02-12T22:07:16","date_gmt":"2005-02-12T22:07:16","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2005\/02\/12\/mono-xsp\/"},"modified":"2005-02-12T22:07:16","modified_gmt":"2005-02-12T22:07:16","slug":"mono-xsp","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2005\/02\/mono-xsp\/","title":{"rendered":"mono xsp"},"content":{"rendered":"<p>\u4eca\u5929\u641e\u4e86\u4e00\u5929&#8230;\u628a\u5fc3\u5f97\u8a18\u8ff0\u4e00\u4e0b&#8230;<br \/>\n\u5176\u5be6\u5b89\u88dd\u6b65\u9a5f\u5f88\u7c21\u55ae:<br \/>\n1.\u56e0\u70ba\u6211\u662f\u7528 rpm base \u7684 <a href=\"http:\/\/www.whiteboxlinux.org\" title=\"WhiteBox Enterprise linux\">WhiteBox Enterprise Linux<\/a>,\u6240\u4ee5\u5148\u5230 <a href=\"http:\/\/dag.wieers.com\/home-made\/apt\/\" title=\"DAG:Apt\/Yum RPM repository\">DAG:Apt\/Yum RPM repository<\/a>\u53bb\u5b89\u88dd mono \/ xsp \/ mod_mono \u5957\u4ef6.\u61f6\u5f97\u81ea\u5df1\u6311\u7684\u8a71,\u5c31\u7528 mono-complete \/ xsp \/ mod_mono.<br \/>\n2.\u5230\u4e86\u9019\u88e1,\u5176\u5be6\u5df2\u7d93\u88dd\u597d\u4e00\u534a. \u8a2d\u5b9a MONO_PATH<\/p>\n<blockquote><p>\nexport MONO_PATH=\/usr\/lib\/mono\/1.0\/\n<\/p><\/blockquote>\n<p>3.\u5728 \/etc\/httpd\/conf.d\/ \u4e0b,\u65b0\u589e\u4e00\u500b mono.conf, \u5167\u5bb9\u5982\u4e0b:<\/p>\n<blockquote><p>\nAddType application\/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx<br \/>\nLoadModule mono_module modules\/mod_mono.so<br \/>\nMonoUnixSocket \/tmp\/mod_mono_server<br \/>\nAlias \/mono &#8220;\/usr\/share\/doc\/xsp-0.9\/xsp\/test\/&#8221;<br \/>\n&lt;Directory &#8220;\/usr\/share\/doc\/xsp-0.9\/xsp\/test&#8221;&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride FileInfo<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\nAddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx<br \/>\n&lt;\/Directory&gt;<br \/>\nDirectoryIndex index.aspx Default.aspx\n<\/p><\/blockquote>\n<p>4.\u91cd\u65b0\u555f\u52d5 httpd<br \/>\n5.\u4fee\u6539 \/usr\/share\/doc\/xsp-0.9\/xsp\/test\/mod-mono-server.exe.config, \u627e\u5230 MonoApplications, \u5c07 value \u6539\u70ba \/mono:.<br \/>\n6.\u5207\u63db\u5230 \/usr\/share\/doc\/xsp-0.9\/xsp\/test \u4e0b,\u57f7\u884c:<\/p>\n<blockquote><p>\n#mono \/usr\/bin\/mod-mono-server.exe &#8211;root . &#8211;applications \/mono:.\n<\/p><\/blockquote>\n<p>7. \u5c07 \/tmp\/mod_mono_server \u7684 owner \u6539\u70ba apache :<\/p>\n<blockquote><p>\n#chown apache:apache \/tmp\/mod_mono_server\n<\/p><\/blockquote>\n<p>\u5927\u529f\u544a\u6210,\u63a5\u8457\u4f60\u53ef\u4ee5\u5229\u7528\u700f\u89bd\u5668\u8f38\u5165 http:\/\/your_server\/mono\/ \u4f86\u770b\u7d50\u679c\u4e86&#8230;<br \/>\n\u9019\u908a\u5176\u5be6 apache \u7684 mod_mono module \u662f\u5229\u7528 Unix Socket \u8207 mod-mono-server \u6e9d\u901a\u7684,\u6240\u4ee5\u4e26\u4e0d\u6703\u53bb listen \u4efb\u4f55\u4e00\u500b port&#8230;<br \/>\n\u6211\u4e4b\u524d\u4ee5\u70ba\u4ed6\u6703\u8207 xsp \u4e00\u6a23,\u6703 listen 8080 port, \u731c\u932f @_@<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u641e\u4e86\u4e00\u5929&#8230;\u628a\u5fc3\u5f97\u8a18\u8ff0\u4e00\u4e0b&#8230; \u5176\u5be6\u5b89\u88dd\u6b65\u9a5f\u5f88\u7c21\u55ae: 1.\u56e0\u70ba\u6211\u662f\u7528 rpm base \u7684 WhiteBox Enterprise Linux,\u6240\u4ee5\u5148\u5230 DAG:Apt\/Yum RPM repository\u53bb\u5b89\u88dd mono \/ xsp \/ mod_mono \u5957\u4ef6.\u61f6\u5f97\u81ea\u5df1\u6311\u7684\u8a71,\u5c31\u7528 mono-complete \/ xsp \/ mod_mono. 2.\u5230\u4e86\u9019\u88e1,\u5176\u5be6\u5df2\u7d93\u88dd\u597d\u4e00\u534a. \u8a2d\u5b9a MONO_PATH export MONO_PATH=\/usr\/lib\/mono\/1.0\/ 3.\u5728 \/etc\/httpd\/conf.d\/ \u4e0b,\u65b0\u589e\u4e00\u500b mono.conf, \u5167\u5bb9\u5982\u4e0b: AddType application\/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx LoadModule mono_module modules\/mod_mono.so MonoUnixSocket \/tmp\/mod_mono_server Alias \/mono &#8220;\/usr\/share\/doc\/xsp-0.9\/xsp\/test\/&#8221; &lt;Directory &#8220;\/usr\/share\/doc\/xsp-0.9\/xsp\/test&#8221;&gt; Options Indexes FollowSymLinks &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2005\/02\/mono-xsp\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;mono xsp&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-linux-"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-7J","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=479"}],"version-history":[{"count":0,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/479\/revisions"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}