dongtangu6889 2016-11-06 18:25
浏览 365

在xampp服务器上禁止访问 - localhost

I am totally confused with my problem. It is not the new one but I can not find the right combination of words and tags for my config - files, because some of the solutions from the same questions here are not working.

I am trying to open the site, which is locally hosted by xampp server from my phone. The address I am using is : ip:8080/blog.dev:8080 and I am getting 403 - error.

My conf - files:

  1. httpd-vhosts.conf

    <VirtualHost *:8080>
       DocumentRoot "D:/PHP/xampp/htdocs/blog/public"
       ServerName blog.dev
       <Directory "D:/PHP/xampp/htdocs/blog/public">
          Order Deny,Allow
          Allow from all
          Require all granted
       </Directory>
    </VirtualHost>
    
  2. httpd.conf

    DocumentRoot "D:/PHP/XAMPP/htdocs"
    <Directory "D:/PHP/XAMPP/htdocs">
       Order allow,deny
       Allow from all
       Require all granted
    </Directory>
    

I tried to add "Options Indexes FollowSymLinks"but that's not help

  • 写回答

1条回答 默认 最新

  • duanlie3187 2016-11-06 19:03
    关注

    Following your logs and the provided link, I'd say that the second port number is "too much".

    Try access your website through http://blog.dev:8080/.

    Hope it helps.

    EDIT

    If the ip is 192.168.1.102, you have to replace the

    127.0.0.1    blog.dev
    

    with that ip in your host file :

    192.168.1.102    blog.dev
    

    And then, access it through http://blog.dev/.

    评论

报告相同问题?

悬赏问题

  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用