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. hpuoj--校赛--考试来了(水题)

    问题 C: 感恩节KK专场--考试来了 时间限制: 1 Sec  内存限制: 128 MB 提交: 475  解决: 112 [提交][状态][讨论版] 题目描述 很多课程马上就结课了,随之而来的就是 ...

  2. BZOJ 球形空间产生器 解题报告(高斯消元)

    题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=1013 1013: [JSOI2008]球形空间产生器sphere 有一个球形空间产生器能 ...

  3. docker 命令合集

    目录 image镜像操作 container 容器操作 访问仓库 Repository 数据管理 使用网络 容器互联: image镜像操作 列出已经下载下来的镜像: docker image ls 查 ...

  4. POJ 2449 第k短路 Dijkstra+A*

    这道题我拖了半年,,,终于写出来了 思路: 先反向建边 从终点做一次最短路 ->这是估价函数h(x) 再正常建边,从起点搜一遍 (priority_queue(h(x)+g(x))) g(x)是 ...

  5. Activity的启动模式和onNewIntent()

    1:首先,在默认情况下,当您通过Intent启到一个Activity的时候,就算已经存在一个相同的正在运行的Activity,系统都会创建一个新的Activity实例并显示出来.为了不让Activit ...

  6. 存储过程的调用和Parameters数组的调用

    记录一些杂记吧 declare @d datetime set @d=GETDATE() select * from [ACC_B2B].[dbo].ORDER_Head --where 1=1 se ...

  7. socket 编程的端口和地址复用

    在linux socket网络编程中,大规模并发TCP或UDP连接时,经常会用到端口复用:   int opt = 1;   if(setsockopt(sockfd, SOL_SOCKET,SO_R ...

  8. 05-数据类型转换(bool类型)

  9. 【Educational Codeforces Round 37 E】Connected Components?

    [链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] bfs. 用一个链表来记录哪些点已经确定在某一个联通快里了. 一开始每个点都能用. 然后从第一个点开始进行bfs. 然后对于它的所有 ...

  10. 【转】 java RSA加密解密实现

    [转] java RSA加密解密实现 该工具类中用到了BASE64,需要借助第三方类库:javabase64-1.3.1.jar 下载地址:http://download.csdn.net/detai ...