Wamp Multi-domain Configuration

Source: Internet
Author: User
Tags apache error log server error log

To add a domain name dashu.com as an example: Create a new file under Wamp\alias dashu.com.config

Namevirtualhost Dashu.com<virtualhost dashu.com>DocumentRoot"D:/program files/wamp/www/xjdold/"ServerName Dashu.com<directory "D:/program files/wamp/www/xjdold/" >Options followsymlinks Indexes allowoverride all Order deny, allow to from all#Require All granted</directory></virtualhost><virtualhost localhost>DocumentRoot"D:/program files/wamp2.1/www"ServerName localhost<directory "D:/program files/wamp2.1/www" >Options followsymlinks Indexes allowoverride all Order deny, allow to from all#Require All granted</Directory></VirtualHost>

Errors that may occur:

1.wamp Multi-domain configuration only the first domain name is parsed

See if VirtualHost is missing before Namevirtualhost dashu.com, the old version of Apache, no namevirtualhost,<virtualhost> The label doesn't work (the new Apache has removed the namevirtualhost configuration)

2. Report the following error

Internal Server Error

The server encountered an internal error or misconfiguration and is unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything yo U might has done so may has caused the error.

More information on this error is available in the server error log.

Then check Apache error log to find an error: Configuration error:couldn ' t perform authentication. AuthType not set

WORKAROUND: If Apache version drizzle 2.4, remove require all granted this line, if greater than 2.4, remove allow from all

Wamp Multi-domain Configuration

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.