How does apache publish a website?

Source: Internet
Author: User
How does one publish a website on apache? I have a website on the local machine. The website is placed under the apache root directory and can be accessed normally on the local machine, how can other hosts in the same LAN access my local website through a browser? what is entered in the address bar? What does apache need to configure? ------ Solution ------------------ modify several corresponding access control items in the apache configuration file httpd. conf. how does apache publish a website?
I made a website on the local machine. The website is placed under the apache root directory and can be accessed normally on the local machine, how can other hosts in the same LAN access my local website through a browser? what is entered in the address bar? What does apache need to configure?


------ Solution --------------------
Modify the corresponding access control items in the configuration file httpd. conf of apache,
Order allow, deny
Allow from all

The keyword is the above two lines, some of which are Deny from all by default, modified to Allow from all, and then restart apache. enter your ip address in the address bar of the LAN, without entering the port number, because the default value is 80 ,.

Note: the configuration file contains a few similar items, because it involves security issues such as directory access permissions. if you are releasing a formal website, please modify it with caution and perform a test.

Also, the firewall may need to be turned off.

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.