Environment:
Perform:
- Install Web service: sudo yum install httpd
- Open Web Service: Service httpd start
- 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