dongpu1879 2015-01-27 06:53
浏览 22
已采纳

在同一IP上路由2台sepparet机器

I have a shop with 2 computers and an online security camera system connected to a router.

I want to be able to host a "website" from one of the computers but it looks like the security camera is using the default port for my IP address.

The website is hosted on the computer using xampp.

What I did so far is as following:

  1. Made sure the router remembers the computer by MAC address and gives it the same IP address all the time.
  2. Forwarded that ip address of the computer to port 5000 ( didnt work ) and tried also 21 ( also didnt work)
  3. I made sure the windows firewall allows port 21 and 5000.
  4. Deleted the following line from XAMPP configuration file "httpd-xampp.conf"

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

Still not working... I'm not sure what am I doing wrong. maybe 1 router cant host more then 1 website or I don't know.. Would very much appreciate help

</div>
  • 写回答

1条回答 默认 最新

  • douzhuo8871 2015-01-27 07:13
    关注

    If you forward the request to another port, you must configure apache to listen to this other port as well. If not apache will listen to port 80 by default. See this SO question

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀