Appserv local multi-port configuration file

Source: Internet
Author: User

1. CONF/httpd. conf only needs to remove the annotator # started by the two virtual hosts. Do not change anything else.

2, extra/httpd-vhosts.conf only need to first 2 namevirtualhost, and then point to the two ports.

Attachment httpd-vhosts.conf document

#
# 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
#
# 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
Servername www.dede.com
Errorlog D:/appserv/www/errornongye. Log
Customlog logs/dummy-host2.appservnetwork.com-access_log common
</Virtualhost>

<Virtualhost *: 82>
Serveradmin jsw7001@hotmail.com
DocumentRoot D:/appserv/www/wwwnongjiale
Servername www.dede.com
Errorlog D:/appserv/www/wwwnongjiale/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.