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/.

    评论

报告相同问题?

悬赏问题

  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法