Apache virtual directory configuration for help

Source: Internet
Author: User
Apache IIS Configuration Web Site Directory

My Apache installed after no vhosts file, in the Configuration directory config file only; Configure the site virtual rate directory is how to configure AH
The port I installed is 8080
80 IIS is installed
I have this configuration under Apache's httpd.conf:

ServerAdmin 1150665265@qq.com
DocumentRoot C:/apache/vote/public
ServerName vote.com:8080

Options FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all



In the hosts this configuration: 127.0.0.1 vote.com:8080
But why can't I find a webpage when I enter vote.com:8080/index.php?


Reply to discussion (solution)

In the extra directory there is a httpd-vhosts.conf file, put that paragraph into the inside. And make sure you open the Vhost in httpd.conf.

But I don't have that file in my installation directory. Extra and httpd-vhosts.conf files

Find an integrated environment to reinstall it, Wamp, XAMPP can.

The configuration of virtual space is to be configured in extra/httpd_vhosts.conf http.conf, our virtual host configuration, it is best not to write in httpd.conf, httpd.conf of course also need to be set up, that is to open Include conf/extra/httpd-vhosts.conf this line. My advice is the same as upstairs, you'd better reinstall it.

You can take a look at the Hanshunping _php from getting started to mastering. Video Tutorial. 31st. Build and install the PHP development environment using the ①.APPSERV kit. Install a kit.

At the end of Apache httpd.conf, add:
Listen 8800

ServerAdmin 1150665265@qq.com
DocumentRoot C:/apache/vote/public
ServerName vote.com


In the hosts this configuration: 127.0.0.1 vote.com

After configuring Apache, remember to restart Apache.


My installation is IIS and Apache two servers. In this way, the test home page for IIS

  • 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.