关于通过移动设备访问本地环境解决方法
2015-05-18 21:56
375 查看
本地环境用http://localhost/访问,但是在做移动端的时候想用手机访问出现了问题,后来在网上查到解决方案。
修改php的配置文件httpd.conf。
修改成
还有
修改成
然后保存后重启服务,注意把目录修改成自己的本地环境目录!
修改php的配置文件httpd.conf。
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory>
修改成
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow # Deny from all Allow from all #允许所有访问 Satisfy all </Directory>
还有
<Directory "E:\wamp\www"> # # 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.2/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: # 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 </Directory>
修改成
<Directory "E:\wamp\www"> # # 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.2/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: # 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>
然后保存后重启服务,注意把目录修改成自己的本地环境目录!
相关文章推荐
- 关于“访问映射网络驱动器提示 本地设备名已在使用中,此连接尚未还原”解决方法!
- 几种访问其他域swf文件,或本地浏览器运行环境【安全沙箱】冲突解决方法
- Tomcat在局域网中localhost可以访问,但是无法通过本地ip访问,127.0.0.1也无法访问问题的解决方法
- 关于lnmp1.3环境下mysql不能远程访问的解决方法
- webpack本地开发环境无法用IP访问的解决方法
- Tomcat在局域网中localhost可以访问,但是无法通过本地ip访问,127.0.0.1也无法访问问题的解决方法
- 关于通过网页查看JS源码中汉字显示乱码的解决方法
- 关于iis+php架构网站迁移到腾讯云ECS后公网IP无法访问的可能解决方法
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- 关于安装版JDK1.8或1.7更改多个JDK环境变量不生效的解决方法
- MySQL通过IP来访问数据库的权限解决方法
- 关于初学者nginx启动 但是无法通过IP地址访问的解决办法!
- Oracle环境通过SQL*PLUS本地登录时报错的解决过程
- LInux Oracle本地可以连接远程无法访问解决方法-启动实例-开启监听
- 本地访问json格式文件出现XMLHttpRequest cannot load的解决方法
- 关于flask表单验证json数据不通过总是返回False的解决方法(flask wtforms: Validation always false)
- 关于jQuery对下拉框通过val取不到值的解决方法
- 关于因各种原因,造成LINUX主机不能通过域名访问自己的解决办法
- 微信通过页面(H5)直接打开本地app的解决方法
- 关于tomcat访问managerapp出现403报错的解决方法