-
Find your Apache installation directory, the directory of Apache installed for small series
- 2
Click the Conf folder Enter the configuration directory, locate the httpd.conf file,
- 3
To open the httpd.conf file,
Find 475 rows,
or ctr+f find httpd-vhosts.conf
Remove the previous #
Ps: include conf/extra/httpd-vhosts.conf (this refers to the Apache installation directory under the Conf Folder below the extra below the httpd-vhosts.conf file If you want to change the directory, you can also, but you must specify the correct directory).
- 4
Find the file path you specified according to the previous step
- 5
Punch httpd-vhosts.conf file , set the port, default to 80 port without modification, if your 8 port other programs occupy, please modify.
- 6
Virtual host configuration, see diagram
- 7
Restart Apache. Start-to-run cmd input command
Net stop apache2.2net start Apache2.2
-
[Apache Series] How to configure Apache Vhost under Windows