..。Linking external style sheets in header of splash.html:or
mwarning 2017-10-9
1

可能会与#46一起修复

原文:

Will probably be fixed along with #46

onuonga 2017-10-9
2

这是固定的, 因为我可以看到我的 css 得到的响应代码 200, 但它 delvers 为 txt/html, 这导致它没有被加载。有趣的是, 当您查看页面源并单击 html 时, 它会像网页一样解决它, 并加载另一个重定向的网页。有什么线索吗?

原文:

Was this ever fixed as I can see my css gets the response code 200 but it delvers as txt/html and this results in it not being loaded. Interestingly, when you look at the page source and you click on the html it resolves it like a web page and loads another redirect web page. Any clue how to go by this?

bluewavenet 2017-10-9
3

@Onuonga
问自己为什么需要单独的 css 文件来提供一个简单的初始页面。
如果仍然这样做, 请阅读#46中的 "解决方法" 5月21日

"如果你试图做一些更复杂的事情, 你会更好地使用 uhttpd 已经运行在 OpenWrt。这是默认情况下, 客户端无法访问时, 在 preauth 阶段。您需要通过在 nodogsplash 中添加条目来允许访问。

与您的 css 文件下/www/mycss/引导. 最小 css, 添加以下行到 nodogsplash。

FirewallRuleSet: preauthenticated-用户

FirewallRule 允许 tcp 端口80到 [ipaddress_openwrt]

你不需要 libevhtp libneon 或 libmicrohttpd。

链接到以下 css 文件:
http://openwrt. lan/mycss/[cssfile]. css"

原文:

@Onuonga
Ask yourself why you need separate css files for a simple splash page.
If you still do, read my workaround of 21st May in #46

"If you are trying to do something much more sophisticated you would be better of using the uhttpd already running on OpenWrt. This is by default not accessible to clients when at the preauth stage. You need to allow access by adding an entry into nodogsplash.conf

With your css files under /www/mycss/bootstrap.min.css, add the following line to nodogsplash.conf:

FirewallRuleSet: preauthenticated-users

FirewallRule allow tcp port 80 to [ipaddress_openwrt]

You do not need libevhtp libneon or libmicrohttpd .

Link to the css files at:
http://openwrt.lan/mycss/[cssfile].css "

返回
发表文章
vadim1r
文章数
1
评论数
0
注册排名
60923