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. linux每天一小步---sed命令详解

    1 命令功能 sed是一个相当强大的文件处理编辑工具,sed用来替换,删除,更新文件中的内容.sed以文本行为单位进行处理,一次处理一行内容.首先sed吧当前处理的行存储在临时的缓冲区中(称为模式空间 ...

  2. B-spline Curves 学习之B样条曲线的导数(8)

    Derivatives of a B-spline Curve 本博客转自前人的博客的翻译版本,前几章节是原来博主的翻译内容,但是后续章节博主不在提供翻译,后续章节我在完成相关的翻译学习. (原来博客 ...

  3. The Scope Chain

    JavaScript is a lexically scoped language: the scope of variable can be thought of as the set of sou ...

  4. gitignore 使用

    在git中如果想忽略掉某个文件,不让这个文件提交到版本库中,可以使用修改根目录中 .gitignore 文件的方法(如无,则需自己手工建立此文件).这个文件每一行保存了一个匹配的规则例如: # 此为注 ...

  5. asp.net core部署到iis

    asp.net core项目部署到IIS稍微不同于之前,记录几个要点: 一.下载安装.NET Core 托管捆绑包,下载地址,这个链接或许不是最新的了,官方文档里面有这个链接,到下图所示位置即可找到. ...

  6. c# 利用t4模板,自动生成Model类

    我们在用ORM(比如dapper)的时候,很多时候都需要自己写Model层(当然也有很多orm框架自带了这种功能,比如ef),特别是表里字段比较多的时候,一个Model要写半天,而且Model如果用于 ...

  7. Linux程序设计:目录维护

    一.相关系统调用 1.1 chmod 改变访问权限. #include <sys/stat.h> int chmod(const char *path, mode_t mode) 1.2 ...

  8. iOS ItunesStore 首页推荐

    ItunesStore 首页推荐需要发给苹果一些 app 的相关信息,以及制作一个符合要求的图片. 图片要求可能经过过修改,要求会变化. 以下内容用于参考: 例子 1: Hello, My name ...

  9. qi zi

    #include<stdio.h> ]; ][]; int N; typedef struct node{ int x; }node; node dui[]; int se(int a) ...

  10. python文件备份与简单操作

    #!/usr/bin/python # -*- coding: utf-8 -*- # data:2018/8/30 # user:fei import sys import random num = ...