ASP. NET site under Apache configuration, so simple

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.