About XAMPP using a different port for a virtual machine

Source: Internet
Author: User

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

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.