Apche multi-port configuration and website pointing to non-Apche default website folder setting method

Source: Internet
Author: User

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# Machine you can setup virtualhost containers for them. Most deployments
# 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
# <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 *: 81
Namevirtualhost *: 82
Namevirtualhost *: 83
Namevirtualhost *: 84
Namevirtualhost *: 85
Namevirtualhost *: 86
#
# 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 *: 81>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www-nongye
Servername www.dede.com
Errorlog D:/appserv/www-nongye/errornongye. Log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 82>
<Directory "D:/appserv/www-chinaec">
Options followsymlinks
# Deny from all
Allow from all
</Directory>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www-chinaec
Servername www.dede.com
Directoryindex index. php index.html
Errorlog D:/appserv/www-chinaec/errornongjiale. Log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 83>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www/www-05110
Servername www.dede.com
Errorlog D:/appserv/www/www-05110/errornon1_5110.log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 84>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www/WordPress
Servername www.dede.com
Errorlog D:/appserv/www/WordPress/errornongwordpress. Log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 85>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www/magento
Servername www.dede.com
Errorlog D:/appserv/www/magento/errormagento. Log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 86>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www/magento1322
Servername www.dede.com
Errorlog D:/appserv/www/magento1322/errormagento1322.log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 88>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www-nongjiale
Servername www.dede.com
Errorlog D:/appserv/www-nongjiale/errornongjiale. Log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>
<Virtualhost *: 80>
Serveradmin webmaster@dummy-host2.x
DocumentRoot "C:/apache2.2/docs/dummy-host2.x"
Servername dummy-host2.x
Errorlog "log/dummy-host2.x-error.log"
Customlog "logs/dummy-host2.x-access.log" common
</Virtualhost>

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.