ASP. NET site under Apache configuration, so simple
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine your can setup VirtualHost containers for them. Most configurations
# Use of name-based virtual hosts so the server doesn ' t need to worry about
# IP addresses. This was indicated by the asterisks in the directives below.
#
# documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before your try to setup virtual hosts.
#
# 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 could go into a VirtualHost container.
# The first VirtualHost section was used for all requests and that does 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
Aspnetmount/aspx "C:/APACHE2.2/HTDOCS3"
# MAP all requests for/asp to the ASP
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>
ASP. NET site under Apache configuration, so simple