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

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 [email protected]

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 [email protected]

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 [email protected]

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>

时间: 2024-12-29 10:02:33

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

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

一.引言 Apache提供的很多工具方法非常好用,推荐. 今天在使用的过程中使用到了org.apache.commons.io.FileUtils.listFiles方法,本文主要谈谈这个工具方法的用法. 查看源码上的说明是 /** * Finds files within a given directory (and optionally its * subdirectories). All files found are filtered by an IOFileFilter. * <p>

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

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

Win7/Win2008下IIS配置Asp站点的注意事项!

按下面的图示设置,完成后,最好重启网站和应用地址池! Win7/Win2008下IIS配置Asp站点的注意事项!

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

1.多站点配置找到apache下面的 conf/httpd.conf # Virtual hostsInclude conf/extra/httpd-vhosts.conf  //将这句前面的#号注释掉 2.找到conf/extra/httpd-vhosts.conf <VirtualHost 127.0.0.1:80> DocumentRoot "d:/wamp/www/testadmin/" ServerName www.test.com </VirtualHos

Linux下apache+php搭建配置记录

linux下apache+php搭建配置记录 第1章  环境说明 1.1 系统说明 CentOS 6.4 1.2 软件说明 httpd-2.4.2.tar.gz apr-util-1.4.1.tar.gz apr-1.4.6.tar.gz pcre-8.13.tar.gz php-5.4.3.tar.bz2 libmcrypt-2.5.8.tar.gz mhash-0.9.9.9.tar.gz 第2章  Apache搭建说明 2.1 安装依赖包 yum install make openldap

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

http://jingyan.baidu.com/article/5225f26b07605be6fa090890.html 让Apache在启动时能加载虚拟主机模块. 打开Apache安装目录下conf/httpd.conf文件,找到下面两行文字,把最前面的 # 号去掉,然后保存. #LoadModule vhost_alias_module modules/mod_vhost_alias.so #Include conf/extra/httpd-vhosts.conf   接着找到同一文件中

Linux下安装配置Apache服务器

Linux下安装配置Apache服务器 1. 安装Apache [[email protected] ~]# yum –y install httpd 2. 启动Apache [[email protected] ~]# systemctl start httpd 3. 查看进程 [[email protected] ~]# systemctl status httpd httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib

Apache在本地配置多个站点

在我们安装APACHE的时候一般默认的apache的配置是只有一个网站,这样切换起来很不方便.其实这个问题很好解决,就是把本机的 apache配置成为虚拟服务器.但是,网上大多数教程的是教用 apache如何配置基于域名的虚拟主机的,而在本机调试网站的时候,一般都是用本地ip(127.0.0.1 或 localhost)直接访问,没有用到域名.所以得把apache配置成为基于ip地址的虚拟主机. 首先,我们都知道,所有以127打头的ip地址都应该指向本机,并不只有127.0.0.1,这点大家可以

ASP.NET Aries 入门开发教程4:查询区的下拉配置

背景: 今天去深圳溜达了一天,刚回来,看到首页都是微软大法好,看来离.NET的春天就差3个月了~~ 回到正题,这篇的教程讲解下拉配置. 查询区的下拉配置: 1:查询框怎么配置成下拉? 在配置表头:格式化配置 #是否 PS:格式化配置除了用来格式化表格的内容,同样也会下拉进行格式化. 效果: 那“#是否”是哪里来的? 在配置维护里来的,对于固定的选项,统一在这里配置: 2:查询框下拉能不能多选? 配置格式规则即可:multiple属性 效果: 3:查询框下拉能不能级联? 配置格式化规则指向上一级即