搭建了一个Apache+Php+MySQL的服务器。要如何通过Apache发布网站使得其他的电脑可以通过局域网访问?
1、网站的代码放在文件夹“www”下;
2、配置apache允许他人访问网站:在wamp/apache/apache版本/conf的httpd.conf文件修改代码如下:
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
#Allow from 127.0.0.1 此时只允许本机访问网址,修改为下面的代码,允许任何人访问电脑
Allow from all
</Directory>