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

<IfModule mod_aspdotnet.cpp>

# 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

<Directory "E:/xampp/htdocs/dotnet/szwqxh">

#ExecCGI

Options FollowSymlinks

Order allow,deny

Allow from all

DirectoryIndex Default.aspx

</Directory>

<Directory "E:/xampp/htdocs/dotnet/t">

Options FollowSymlinks ExecCGI

Order allow,deny

Allow from all

DirectoryIndex Default.aspx

</Directory>

# 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"

<Directory "D:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">

Options FollowSymlinks ExecCGI

Order allow,deny

Allow from all

</Directory>

</IfModule>

<VirtualHost 192.168.0.100:80>

##    ServerAdmin webmaster@szwqxh.com

##    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加载成功

    #如果有配置虚拟主机,以下这一块可放到<VirtualHost *:80></VirtualHost>之间的</VirtualHost>之前

    <IfModule mod_aspdotnet.cpp>

                  # 加载 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 执行以下目录

                  <Directory "$Apache_home\htdocs">

                                Options FollowSymlinks ExecCGI

                                Order allow,deny

                                Allow from all

                  </Directory>

    </IfModule>

</VirtualHost>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值