asp.net 网站在Apache下的配置,就这么简单

#

# Virtual Hosts

#

# If you want to maintain multiple domains/hostnames on your

# machine you can setup VirtualHost containers for them. Most configurations

# use only name-based virtual hosts so the server doesn't need to worry about

# IP addresses. This is indicated by the asterisks in the directives below.

#

# Please see the documentation at 

# <URL:http://httpd.apache.org/docs/2.2/vhosts/>

# for further details before you try to setup virtual hosts.

#

# You may use the command line option '-S' to verify your virtual host

# configuration.





#

# Use name-based virtual hosting.

#

NameVirtualHost 192.168.1.86:80





#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for all requests that do not

# match a ServerName or ServerAlias in any <VirtualHost> block.

#

<VirtualHost xxx.xxx.com:80>

RewriteEngine on

#RewriteRule ^/zhishi-([A-Z-a-z-0-9]{4}+)([A-Z-a-z-0-9]+).html$ /czzsk/$1/$1$2/index.html [PT]

RewriteRule   ^/([^/]+).aspx  /aspx/$1.aspx  [PT]

RewriteRule   ^/([^/]+).([^/]+)  /aspx/$1.$2  [PT]

#[R,L,NE]





AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/windows/Microsoft.NET/Framework/v$2.$0.$50727/ASP.NETClientFiles/$4"

   <Directory "C:/windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">

      Options FollowSymlinks

      Order allow,deny

      Allow from all

   </Directory>  

# Mount the asp.net sample

AspNetMount /aspx "C:/Apache2.2/htdocs3"





# Map all requests for /asp to the asp.net sample

Alias /aspx "C:/Apache2.2/htdocs3"



    ServerAdmin webmaster@dummy-host2.127.0.0.1

DocumentRoot C:/Apache2.2/htdocs3

DirectoryIndex Default.aspx

    ServerName dummy-host2.127.0.0.1

    ErrorLog "logs/dummy-host2.127.0.0.1-error.log"

    CustomLog "logs/dummy-host2.127.0.0.1-access.log" common

<Directory "C:/Apache2.2/htdocs3">

    #AddType text/html .html

    Options Indexes FollowSymLinks MultiViews ExecCGI Includes

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory> 

  

</VirtualHost>





<VirtualHost www.test.com:80>

DocumentRoot C:/Apache2.2/htdocs1

DirectoryIndex index.html

    ServerAdmin webmaster@dummy-host.127.0.0.1

    ServerName dummy-host.127.0.0.1

    ServerAlias www.dummy-host.127.0.0.1

    ErrorLog "logs/dummy-host.127.0.0.1-error.log"

    CustomLog "logs/dummy-host.127.0.0.1-access.log" common

<Directory "C:/Apache2.2/htdocs1">

    #AddType text/html .html

    Options Indexes FollowSymLinks MultiViews ExecCGI Includes

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory> 

AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/windows/Microsoft.NET/Framework/v$2.$0.$50727/ASP.NETClientFiles/$4"

   <Directory "C:/windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">

      Options FollowSymlinks

      Order allow,deny

      Allow from all

   </Directory>       

</VirtualHost>





<VirtualHost jxc.*.test.com:80>

    ServerAdmin webmaster@dummy-host2.127.0.0.1

DocumentRoot C:/Apache2.2/htdocs3

DirectoryIndex Default.aspx

    ServerName dummy-host2.127.0.0.1

    ErrorLog "logs/dummy-host2.127.0.0.1-error.log"

    CustomLog "logs/dummy-host2.127.0.0.1-access.log" common

<Directory "C:/Apache2.2/htdocs3">

    #AddType text/html .html

    Options Indexes FollowSymLinks MultiViews ExecCGI Includes

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory> 

AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/windows/Microsoft.NET/Framework/v$2.$0.$50727/ASP.NETClientFiles/$4"

   <Directory "C:/windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">

      Options FollowSymlinks

      Order allow,deny

      Allow from all

   </Directory>    

</VirtualHost>

asp.net 网站在Apache下的配置,就这么简单的更多相关文章

  1. asp.net 站点在Apache下的配置,就这么简单

    asp.net 站点在Apache下的配置,就这么简单 # # Virtual Hosts # # If you want to maintain multiple domains/hostnames ...

  2. Apache下安装配置mod_pagespeed模块,轻松完成网站提速

    mod_pagespeed是一个开源的Apache module,它由谷歌开发,通过优化你的网页来减少响应延迟和带宽占用.作用参考ngx_pagespeed功能:http://blog.linuxey ...

  3. 关于asp.net网站中web.config的配置

    1.Session生命周期配置 2.连接默认错误页 实例说明:在一些网站中,当网络地址发生错误时,通常会自动跳转到一个页面,并在该页面显示错误信息,此功能也可以通过配置web.config文件配置实现 ...

  4. 300万PV的ASP.NET网站使用阿里云的配置建议

    @老牛吃肉在博文“今天的访问高峰,扛过去了”的评论中询问了这样一个问题: 你好,站长,本公司正在考虑用阿里云.用途:互联网网站,主要站点:asp.net开发目前的考虑情况:访问ip 15-20万,pv ...

  5. ASP.NET 网站在域环境内配置授权访问

    在 IIS 中,通常需要配置域中的某些用户或者用户组有权限访问部署的 WEB 站点或者 WEB 服务.我们知道要实现这种功能可以有如下几种方式: 代码,获取当前用户,到域服务器上去验证当前用户是否为合 ...

  6. Apache下的FileUtils.listFiles方法简单使用技巧

    一.引言 Apache提供的很多工具方法非常好用,推荐. 今天在使用的过程中使用到了org.apache.commons.io.FileUtils.listFiles方法,本文主要谈谈这个工具方法的用 ...

  7. windows下PHP与Apache的安装配置

    1.下载安装apache:官网 http://httpd.apache.org/download.cgi#apache24 下载httpd-2.2.25-win32-x86-no_ssl.msi并安装 ...

  8. Win7/Win2008下IIS配置Asp网站启用父路径的设置方法(已解决)

    Win7/Win2008下IIS配置Asp网站启用父路径的设置方法(已解决) 在Win7/Win2008下IIS配置Asp网站启用父路径的设置方法与win2003下不同,看看下图就知道了.

  9. asp IIS网站的配置(Win7下启用IIS7配置ASP运行环境)

    其实win7下的IIS7配置过程是非常简单的.下面让seo博客来详细的介绍一下win7下配置IIS7环境运行ASP网站的方法,以供初接触者参考   第一次在windows7下配置IIS,虽然有丰富的x ...

随机推荐

  1. pv和pvc状态

    原文地址:https://kubernetes.cn/topics/46 API Server 和 PVController API Server: 这个组件提供对API的支持,响应REST操作,验证 ...

  2. Centos 7 手把手教你使用YUM方式安装并配置Nginx+php7-fpm+MySQL

    需要准备的内容 一台纯净系统的服务器 远程连接服务器的工具 (我这里使用Xshell) 安装nginx 链接上服务器后执行 yum install nginx  这里需要输入y 后回车,开始安装ngi ...

  3. mongo find

    MongoVUE 对应成语句,结构如下: db.logs.find({ "message" : /消息/ }, { "message" : 1 }).limit ...

  4. 打开窗口进行选择文件(txt文件),打开所选文件,读入文件

    用mfc编写项目的时候往往需要调用窗口,允许用户通过窗口进行选择文件操作 TCHAR szBuffer[MAX_PATH] = { 0 }; OPENFILENAME ofn = { 0 }; ofn ...

  5. Codeforces 766C Mahmoud and a Message 2017-02-21 13:57 62人阅读 评论(0) 收藏

    C. Mahmoud and a Message time limit per test 2 seconds memory limit per test 256 megabytes input sta ...

  6. 自我介绍和Github的初次体验

    姓名:袁宇鹏    学号:1413042045    班级:网络工程142    兴趣爱好:篮球,看书 写过的代码:用C++写过,只能算是看看这源程序修改. 没有开发过任何程序 Github使用流程: ...

  7. Mysql部署

    1. 下载 Mysql 版本为: mysql-5.6.43-linux-glibc2.12-x86_64.tar.gz (注意:下载二进制文件)  存放位置: /usr/local 2. 检查机器上 ...

  8. Spring中ApplicationContext和beanfactory区别---解析二

    一.BeanFactory 和ApplicationContext Bean 工厂(com.springframework.beans.factory.BeanFactory)是Spring 框架最核 ...

  9. Bootstrap模态框modal的高度和宽度设置

    (1)高度 将style=“height:900px”放在<div class = "modal-dialog">或者更外层上,整个模态框的高度不会发生变化 如下图所示 ...

  10. Eclipse中Tomcat Server启动后马上又自动停止报错Address已经使用8005端口 Can't assign requested address (Bind failed)

    Eclipse中Tomcat Server启动后马上又自动停止报错 Can't assign requested address (Bind failed) ,打开Tomcat Server的配置页面 ...