Selasa, 19 Juli 2016


Some times you want to test your website how it look in mobile on your local server but you cant
so after these steps youll 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:
# In dexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesnt 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 - dont 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

0 komentar:

Posting Komentar

Subscribe to RSS Feed Follow me on Twitter!