apache - Wampserver : localhost 403 forbidden after adding allow from all -
i trying make outside access localhost. edited httpd.conf file replacing
allow localhost allow 127.0.0.1 ::1 allow 127.0.0.1
by
allow
nothing happenned. however, when tried recover old configuration, nothing works, can't access localhost or 127.0.0.1. '403 forbidden'
my httpd.config:
documentroot "c:/" <directory "c:/wamp/www"> # # possible values options directive "none", "all", # or combination of: # indexes includes followsymlinks symlinksifownermatch execcgi multiviews # # note "multiviews" must named *explicitly* --- "options all" # doesn't give you. # # options directive both complicated , important. please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # more information. # options indexes followsymlinks # # allowoverride controls directives may placed in .htaccess files. # can "all", "none", or combination of keywords: # allowoverride fileinfo authconfig limit # allowoverride # # controls can stuff server. # # require granted # onlineoffline tag - don't remove allow localhost allow 127.0.0.1 allow 127.0.0.1 ::1 </directory>
what can ?
if need share website can create virtual host listening on port 80 (default http):
<virtualhost *:80> documentroot /var/www/my_web_site directoryindex index.html <directory /var/www/my_web_site> allowoverride none </directory> </virtualhost>
and computer inside lan type ip address.
if want outside of lan should give them public ip address , sure open , forward (from router's settings) port 80 on local ip address.
Comments
Post a Comment