Appserv Configuring virtual Host Settings Tutorial

Source: Internet
Author: User

First step: Install Appserv

Although this software has been discontinued since June 2008, this is still a very good PHP development integration environment. It is not only concise but also easy to use.

Official: http://www.appservnetwork.com/

PS: After installing Appserv on Windows7, use the program's own restart Apache tool if it doesn't work, you can turn on the system's services to restart or shut down the Apache service.

Second step: Modify the local Hosts file (role is domain redirection)

Hosts file address: C:\WINDOWS\system32\drivers\etc\hosts

Assuming your test domain name is: qiming.com, use Notepad to open the hosts and add them at the bottom

127.0.0.1 qiming.com

Step three: Start the Apache virtual hosting feature

Open the Appserv installation directory, locate the httpd.conf file, or find it from the Start menu.

Appserv->configuration->apache Edit the httpd.conf Configuration file to open the httpd.conf

Remove the # number in front of the following two lines of text, respectively

#LoadModule Vhost_alias_module modules/mod_vhost_alias.so

Remove # means enable Apache's virtual host feature

#Include conf/extra/httpd-vhosts.conf

To get rid of this line, it means to import the virtual host configuration from the conf/extra/httpd-vhosts.conf file.


Fourth step: Add Virtual Host information

Open the extra directory in the httpd-vhosts.conf file, whatever, directly at the bottom of the file to add their own virtual host information. as shown below.

<virtualhost *:80>         DocumentRoot  "C:\AppServ\www\1105"     <Directory  "C:\AppServ\www\1105" >        options indexes followsymlinks multiviews         AllowOverride All         order allow,deny        allow from all     </Directory>    ServerName www.cishop.com     serveralias cishop.com    errorlog c:\appserv\apache2.2\logs\ error.log    customlog c:\appserv\apache2.2\logs\access.log common</ Virtualhost> 

Each is given an administrator mailbox, indicating the root directory of this site, domain name, and error log storage location.

This article is from the "Epicor, Magento" blog, so be sure to keep this source http://3154408.blog.51cto.com/3144408/1553818

Appserv Configuring virtual Host Settings Tutorial

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.