1. Open the apache/conf/httpd.conf file to add listen 8080 (listening port number)
Then join
# Virtual Hosts
Include "Conf/extra/httpd-vhosts.conf"
Then join
DocumentRoot "e:\htdocs/"
<directory "e:\htdocs/" >
#
# Possible values for the Options directive is "None", "all",
# or any combination of:
# Indexes includes followsymlinks symlinksifownermatch execcgi multiviews
#
# Note that "MultiViews" must is named *explicitly*---"Options all"
# doesn ' t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks includes execcgi
#
# AllowOverride Controls What directives is placed in. htaccess files.
# It can be ' all ', ' None ', or any combination of the keywords:
# allowoverride FileInfo authconfig Limit
#
AllowOverride All
#
# Controls who can get stuff from the this server.
#
Require all granted
</Directory>
Note: The file address is the above file address, remember is two address
2. Open the httpd-vhosts.conf file in the Apache\conf\extra directory
Join
<virtualhost *:8080>
ServerName localhost
DocumentRoot "E:\project_IC\Source\ICS"
</virtualhost>
Note: Change the address just fine
Complete!
About XAMPP using a different port for a virtual machine