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. git多站点多用户情况下SSH配置

    个人使用github,但是公司使用的是 GitLab .那么在一个电脑上进行处理时,由于先设置了 github 的,导致没办法从 GitLab 上处理 git .其实是由于 ssh 的问题. 下面记录 ...

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

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

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

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

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

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

  6. apache windowns 下wamp配置多站点的问题

    1.多站点配置找到apache下面的 conf/httpd.conf # Virtual hostsInclude conf/extra/httpd-vhosts.conf  //将这句前面的#号注释 ...

  7. window下xampp配置多端口、多站点步骤

    好些日子没整理知识了,许多新东西不整理出来时间一长就淡忘了.看来以后得继续坚持整理. 配置XAMPP多端口.多站点如下步骤: 多端口: (一个域名下同时配置多个端口,从而达到访问不同程序) 效果例如: ...

  8. 配置apache apache服务器如何配置多站点

    http://jingyan.baidu.com/article/5225f26b07605be6fa090890.html 让Apache在启动时能加载虚拟主机模块. 打开Apache安装目录下co ...

  9. Apache下开启SSI配置使html支持include包含

    写页面的同学通常会遇到这样的烦恼,就是页面上的 html 标签越来越多的时候,寻找指定的部分就会很困难,那么能不能像 javascript 一样写在不同的文件中引入呢?答案是有的,apache 能做到 ...

随机推荐

  1. Vim 删除不包含指定字符串的行及统计匹配个数

    Vim 删除不包含指定字符串的行及统计匹配个数 转载▼     Help :g/pattern/d 是找到pattern, 删之 :v/pattern/d 是找到非pattern, 删之 :%s/xx ...

  2. Find and counter

    Find: In a sense, find is the opposite of the [] operator. Instead of taking an index and extracting ...

  3. AngularJs轻松入门(八)Cookies读写

    虽然使用JavaScript创建和获取Cookie很简单,AngularJs还是把它作为一个单独的模块进行了封装,模块名为ngCookies,和前面的教程中做法一样,先引入angular-cookie ...

  4. 浅谈贝塞尔曲线以及iOS中粘性动画的实现

    关于贝塞尔曲线,网上相关的文章很多,这里我主要想用更简单的方法让大家理解贝塞尔曲线,当然,这仅仅是我个人的理解,如有错误的地方还请大家能够帮忙指出来,这样大家才能一起进步. 贝塞尔曲线,常用到的可分为 ...

  5. centos6.9安装virtualenv并配置python2.7环境

    一. 安装python2.7 解压文件 tar -xvf Python-2.7.14.tar 进入源码包目录 cd Python-2.7.14 开始构建之前指定安装的目录 默认会被安装进 /usr/l ...

  6. [洛谷P2045]方格取数加强版

    题目大意:有一个n*n的矩阵,每个格子有一个非负整数,规定一个人从(1,1)开始,只能往右或下走,走到(n,n)为止,并把沿途的数取走,取走后数变为0.这个人共取n次,求取得的数的最大总和. 解题思路 ...

  7. django orm 时间处理

    说明  datetime 类型赋值: 数据库设置时区为:utc 系统设置时区为:'Asia/Shanghai' 1.赋值为:‘2019-04-24 15:00:00’      数据库的结果为   ‘ ...

  8. fork函数详解

    一.fork入门知识 一个进程,包括代码.数据和分配给进程的资源.fork()函数通过系统调用创建一个与原来进程几乎完全相同的进程,也就是两个进程可以做完全相同的事,但如果初始参数或者传入的变量不同, ...

  9. MySQL日志设置及查看方法

    MySQL有以下几种日志: 错误日志: -log-err 查询日志: -log 慢查询日志: -log-slow-queries 更新日志: -log-update 二进制日志: -log-bin 默 ...

  10. qt 闰年

    bool QDate::isLeapYear ( int year ) [static]