VMware builds intranet test Web service

Source: Internet
Author: User

Environment:

    • VMware 10.0
    • Centos 6.5

Perform:

    1. Install Web service: sudo yum install httpd
    2. Open Web Service: Service httpd start
    3. localhost, virtual local access, with:

The virtual machine is locally started successfully, but the external on-premises environment is inaccessible.

The virtual machine network is part of a subnet of the local network (the external local host resembles the router function) and requires a mapped port.

Operation:vmware-> Edit, virtual machine network edit

To test, create a new static paging file: index.html

< HTML > < Div >hello,wrold</div></html>

Put the Apache default site Directory

~/.. /var/www/html/

However, both inside and out of the virtual machine have been inaccessible, prompting 403. Access deny, permissions issues directly linked to httpd/conf/httpd.conf configuration issues

You can refer to:

    • Http://www.cnblogs.com/longhs/p/3558201.html
    • http://sjpsega.iteye.com/blog/1507439

However, the permissions are still insufficient, the following analysis is the folder permissions are insufficient, has not yet done validation. Until a post:

    • Https://serverfault.com/questions/381760/fedora-16-permission-denied-file-permissions-deny-server-access

To add permissions to a file:

chcon -R -h -t httpd_sys_content_t /var/www/html

Sure enough, the HTML folder does not have permissions, the local inaccessible virtual machine was also resolved. Using the same IP to access the results:

Again on external access, the mappings are added successfully:

VMware builds intranet test Web service

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.