Xampp 如何捕获路由器发出的url请求?

Xampp 如何捕获路由器发出的url请求?,xampp,router,wireshark,dyndns,noip,Xampp,Router,Wireshark,Dyndns,Noip,我正试图在Dreamhost上部署我自己的动态DNS服务,并遵循一些指南,使服务器端能够完美地运行—当我打开url时,子域的DNS a记录会得到更新 但是,当我把数据放在路由器上并试图让它工作时(遵循dyndns的标准或没有ip),路由器无法更新 以下是我所拥有的: 1.服务器端按照我的预期工作。 2.路由器在使用默认服务(无ip测试)更新ip时工作。 3.如果我在服务器上的身份验证失败,路由器就会抛出一个身份验证失败错误——它正在访问服务器并进行身份验证。 4.尝试记录日志,查看脚本是否在任何

我正试图在Dreamhost上部署我自己的动态DNS服务,并遵循一些指南,使服务器端能够完美地运行—当我打开url时,子域的DNS a记录会得到更新

但是,当我把数据放在路由器上并试图让它工作时(遵循dyndns的标准或没有ip),路由器无法更新

以下是我所拥有的: 1.服务器端按照我的预期工作。 2.路由器在使用默认服务(无ip测试)更新ip时工作。 3.如果我在服务器上的身份验证失败,路由器就会抛出一个身份验证失败错误——它正在访问服务器并进行身份验证。 4.尝试记录日志,查看脚本是否在任何时候被访问,但没有

因此,我认为路由器请求的url与我预期的不同。我试过使用/、white/update/和/nic/update/

在这一点上,我想看看路由器实际上在请求什么。启动XAMPP,安装Wireshark,并试图将路由器设置为更新我自己的计算机。找到请求并找到301响应,因为路由器正在请求/nic/update?我在/nic/update/?上有它


浏览器透明地处理此重定向,但路由器似乎没有请求新的url。可能需要修改修改?

由于怀疑,路由器将重定向视为错误回复。 在搞乱了mod_重写之后,我让它开始工作了

使用此选项:

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.cgi [L]