ASP.net + Apache服务器配置(局域网内)

 1、安装Apache服务器;

   http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.4-win32-x86-no_ssl.msi

 2、安装.NET Framework(VS2005开发的需要Framework2.0及以上版本)

   http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displayLang=en

 3、安装mod_aspdotnet;

   http://nchc.dl.sourceforge.net/sourceforge/mod-aspdotnet/mod_aspdotnet-2.2.0.2006-setup-r2.msi

 4、修改Apache的配置文件httpd.conf,在该文件最后加入以下内容;

    #加载asp.net模块

    LoadModule aspdotnet_module "modules/mod_aspdotnet.so"

    #如果mod_aspdotnet加载成功

     

        # 加载 ASP.NET 应用

          AspNetMount /网站Name "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/网站Name;

        # 设置应用asp.net的虚拟目录

          Alias /网站Name "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/网站Name"

        # 允许 asp.net scripts 执行以下目录

          C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/网站Name">

              Options FollowSymlinks ExecCGI

              Order allow,deny

              Allow from all

         

        AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

        AliasMatch ^/(?i)aspnet_client/system_web/(/d+)_(/d+)_(/d+)_(/d+)/(.*) "C:/ WINDOWS/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"

        

                            Options FollowSymlinks

                            Order allow,deny

                            Allow from all

        

    

 5、把网站复制到Apache2.2/htdocs目录下。

 6、重启Apache服务器。

 

你可能感兴趣的:(ASP.NET)