Some times you want to test your website how it look in mobile on your local server but you can't
so after these steps you'll be able to do it .
1 -Edit httpd.conf file of Wamp server to fix 403 error
We need to edit httpd.conf file else we will get 403 forbidden error when we access the localhost through local network ip.
1 .Click on wamp server tray icon
2. OpenApache server sub menu
3. Select httpd.conf
4 .Search for " Possible values for the Options directive are "
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
add " Require all granted " under Require local
Find your local network ip
1. open command prompt.
2 .type and enter ipconfig command.
Just type this ip on your mobile browser to display your localhost page successfully.
How do you access a website running on localhost from iPhone browser
How can I access my localhost from my Android device
Testing localhost on other devices
Accessing localhost From Anywhere
How I Test Locally Hosted Sites With Physical Devices
Remote Access to Your Local Site
comment 0 التعليقات:
more_vertsentiment_satisfied Emoticon