Apache LoadModule aspdotnet

#asp.net

LoadModule aspdotnet_module "modules/mod_aspdotnet.so"

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

# Mount the ASP.NET example application

AspNetMount /szwqxh "E:/xampp/htdocs/dotnet/szwqxh"

# Map all requests for /active to the application files

Alias /szwqxh "E:/xampp/htdocs/dotnet/szwqxh"

# Allow asp.net scripts to be executed in the active example

#ExecCGI

Options FollowSymlinks

Order allow,deny

Allow from all

DirectoryIndex Default.aspx

Options FollowSymlinks ExecCGI

Order allow,deny

Allow from all

DirectoryIndex Default.aspx

# For all virtual ASP.NET webs, we need the aspnet_client files

# to serve the client-side helper scripts.

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

Options FollowSymlinks ExecCGI

Order allow,deny

Allow from all

##    ServerAdmin [email protected]

##    DocumentRoot E:/xampp/htdocs/dotnet/szwqxh

##    ServerName szwqxh.com

##    ServerAlias www.szwqxh.com

    ## ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log

    ## CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common

    #如果mod_aspdotnet加载成功

    #如果有配置虚拟主机,以下这一块可放到之间的之前

   

                  # 加载 ASP.NET 应用,当第一个参数为“/”时为整个虚拟主机都需要支持asp.net;也可以设置为虚拟目录,只要加上虚拟目录名即可,如AspNetMount /dotnet "D:\Apache\Apache2\htdocs\dotnet"

                  AspNetMount / "$Apache_home\htdocs"

                  # 设置应用asp.net的虚拟目录,当整个虚拟主机都需要支持asp.net时不要设

                  #Alias /dotnet "$Apache_home\htdocs\dotnet"

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

                 

                                Options FollowSymlinks ExecCGI

                                Order allow,deny

                                Allow from all

                 

   

你可能感兴趣的:(Apache LoadModule aspdotnet)