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.