I want to protect the Sitemaps in my Openhab2 project with different passwords!
In apache you need to create a “Virtual Host”
An Example: You want to protect “http://IP_OPENHAB:8080” you need to create a virtual host named for example “http://IP_OPENHAB:80” in the conf File “<VirtualHost *:80>”.
But for example i have the sitemaps “User1”, “User2” and “User3”.
I want that the Virtual Host and the ProxyPass/ProxyPassReverse is the same URL.
For example “User1” is allowed to access the Openhab start page with PaperUI, … and the sitemap “User1”
“User2” is allowed to access only the sitemap “User2” and “User3” is allowed to access the sitemap “User3”.
It is in the works. At some day Openhab will support security out of the box.
Question in topic is difficult to solve with apache mod proxy as both users will still be able to list all items, things and so on. It is not easily doable with semi static nature of http server configuration.
I’ve readed the Tutorial and think I stay at the Basic Authentication on port 80 with apache2 and wait for an openhab version that has the authentication for sitemaps out of the box!