How to set "openhab.app" as default web page to load in Jetty

778 views
Skip to first unread message

chux...@gmail.com

unread,
Oct 11, 2013, 1:12:10 PM10/11/13
to ope...@googlegroups.com
Hello,

I want to load "openhab.app" as default web page when go to http://localhost:8080, I have searched for some info and try to modify <welcome-file-list> tag in etc/webdefault.xml but it didn't work.

<welcome-file-list>
<welcome-file>openhab.app</welcome-file>
...
</welcome-file-list>

Can someone help me to solve this problem? Thanks in advance.

Hans-Jörg Merk

unread,
Oct 11, 2013, 1:59:57 PM10/11/13
to ope...@googlegroups.com
Hi,
I guess it's cause you are not specifying the sitemap to load.
See how you normaly call it:
http://localhost:8080/openhab.app?sitemap=demo

Regards
Josh

chux...@gmail.com

unread,
Oct 12, 2013, 6:31:02 AM10/12/13
to ope...@googlegroups.com, chux...@gmail.com
Hi Hans-Jorg Merk,

I have changed all the config files to default.sitemaps, default.items, default.rules, ... so, I can just go to http://localhost:8080/openhab.app to open OpenHab web application without specifying "?sitemap=demo" . Normally, we can name the default web page, such as index.html, default.html to load at first. People just write  http://localhost:8080/ instead of  http://localhost:8080/index.html to open our website. I want the "openhab.app" to load as default web page instead of index.html or default.html, how can I do that? I have tried changing openhab.app to index.html in source code and recompile, then I could open OpenHab by going to  http://localhost:8080/index.html but typing http://localhost:8080/ it didn't work, nothing displayed.

I am not familiar with Jetty, can someone help me to config the default web page to load at first?

Regards
Hy

Kai Kreuzer

unread,
Oct 12, 2013, 6:38:41 AM10/12/13
to ope...@googlegroups.com
I also tried this once, but couldn't figure out how to correctly configure Jetty to do this. I then simply gave up as I felt it was not too important to me…
Still, if somebody finds out how to do it, I'd be interested as well!

Regards,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.

Romain Bourdy

unread,
Oct 12, 2013, 9:26:20 AM10/12/13
to ope...@googlegroups.com
Felt the same until I started using greent :)
By the way, can't we just modify the index file ( understood you found it ?))with an HTML page redirection code ?
Reply all
Reply to author
Forward
0 new messages