2015-01-04 13:51
浏览 91

在具有不断变化的IP地址的便携式UwAMP服务器上的论坛/博客/ CMS /类似

Use case : Using UwAmp portable on a portable hard disk drive. It's loaded on a windows computer on a wired LAN network (in a school's computer lab), and UwAmp is launched. There is a static website loaded with educational content (see RACHEL). The IP address is noted using ipconfig and students on other computers type it into their browser to access the site.

Mission: We want to bring in an interactive website here, where users can log in to their accounts and post content, comments, or edit wiki page, etc (nothing on the internet, mind: this is on a LAN).

Challenge: The IP address keeps changing; even the PC at which the portable server is loaded can change at any time. The HDD has to go to another LAN network on the campus on other days of the week. The whole folder will also get copied to other HDDs and travel to other schools and continue operation elsewhere. And so CMS's like Wordpress that seemingly depend on the full URL (which is the old IP address or localhost).. crash.

It's a portable local web server that's supposed to hop locations and not be chained to IP addresses. The solutions I've seen so far belong to completely different use-cases: they involve editing database tables or setting up aliases and editing the hosts file on all the machines including clients, which is just not possible here.

So, requesting help in setting up a changing-IP-address-proof interactive website (php.. wordpress.. wiki.. whatever works!) on a local server like UwAmp, with no configuration changes required when the IP address changes. Thanks in advance!

图片转代码服务由CSDN问答提供 功能建议

用例:使用 UwAmp 可移植到便携式硬盘驱动器上。 它被加载到有线LAN网络上的Windows计算机上(在学校的计算机实验室中),并启动了UwAmp。 有一个静态网站载有教育内容(参见 RACHEL )。 使用 ipconfig 记录IP地址,其他计算机上的学生将其输入浏览器以访问该站点。

使命:我们想在此处引入互动网站,用户可以在其中登录自己的帐户并发布内容,评论 ,或编辑维基页面等(互联网上没有任何内容,介意:这是在局域网上)。

挑战: IP地址保持更改; 甚至加载便携式服务器的PC也可以随时更改。 硬盘必须在一周的其他日子进入校园中的另一个LAN网络。 整个文件夹也将被复制到其他硬盘驱动器并前往其他学校并继续在其他地方运行。 所以CMS就像Wordpress一样,似乎依赖于完整的URL(旧的IP地址或本地主机).. 崩溃

便携式本地网络服务器假设跳转位置而不是链接到IP地址。 到目前为止我看到的解决方案属于完全不同的用例:它们涉及编辑数据库表或设置别名以及在包括客户端在内的所有机器上编辑hosts文件,这在这里是不可能的。

因此,请求帮助在UwAmp等本地服务器上设置一个更改IP地址的交互式网站(php .. wordpress .. wiki ..无论什么工作!),不需要更改配置 IP地址更改。 提前致谢!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dt97868 2015-01-06 13:53

    So it turns out that phpBB and many other forums, as well as Joomla as a CMS/blog alternative to wordpress, have none of wordress's problems with changing URL paths! You have to actually test each one out to find out for sure.. there's seemingly no published parameter that specifies this.

    I tested them in UwAmp on my home wi-fi network.. set up the site using "localhost" URL path, then browsed to them from another machine using the IP address. Could browse, register, log in, post.. it all worked fine.

    I then moved the whole site to a sub-folder and repeated the test.. no issues. I then changed the folder's name mid-flight (ie, while I was logged on).. and typing the correct path in the URL bar returned me to the forum with the session still active!

    The same worked from my small android phone too (on wifi).

    Now this is what I call resiliency. Thumbs up for phpBB and family, thumbs down for wordpress. If they don't need full paths to work, neither should you.

    Other forums tested that work in this use-case (no-internet, path changing): SimpleMachinesForum, FluxBB, UseBB. There were others that while being path-resilient, failed the test because they needed internet connection or a working SMTP server at user registration stage. (I tested around 7 total including phpBB)

    A shout-out to all the questions posted about wordpress crashing on path or server-address change : use Joomla or something instead!

    点赞 打赏 评论

相关推荐 更多相似问题