# PiAware web interface

**URL:** <https://discussions.flightaware.com/t/piaware-web-interface/66085>\
**Category:** ADS-B Flight Tracking\
**Created:** [June 14, 2020, 2:12pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085 "2020-06-14T14:12:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwbernin](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jwbernin/32/66174_2.png) [@jwbernin](https://discussions.flightaware.com/u/jwbernin)\
**Post date:** [June 14, 2020, 2:12pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/1 "2020-06-14T14:12:15Z")

</div>

I’ve just set up PiAware, and I’m reporting data now. When I go to look at the web interface to my PiAware Pi, I can connect with no problems to http://\<ip.ad.dr.ess\>:8080, but [http://hostname.example.com:8080/](http://hostname.example.com:8080/) attempts to redirect to [https://hostname.example.com:8080/](https://hostname.example.com:8080/) and times out.

I have two questions / concerns:

1. How can I connect to the interface using the hostname instead of the IP?
2. Can I connect securely (https), making use of a LetsEncrypt certificate, or is it only http?

---

<div class="post-metadata">

**Author:** ![carstenks](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/carstenks/32/116236_2.png) [@carstenks](https://discussions.flightaware.com/u/carstenks)\
**Post date:** [June 14, 2020, 2:39pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/2 "2020-06-14T14:39:10Z")

</div>

Thats your host/DNS redirecting - Edit your settings there.

1: Edit DNS/redirect setting with your hosting/DNS company  
2: Unfortunately you need a gateway (like CloudFlare) to get HTTPS, PiAware does not support it. (Not that I know of)

---

<div class="post-metadata">

**Author:** ![jwbernin](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jwbernin/32/66174_2.png) [@jwbernin](https://discussions.flightaware.com/u/jwbernin)\
**Post date:** [June 14, 2020, 2:59pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/3 "2020-06-14T14:59:50Z")

</div>

This isn’t my host redirecting - this is the PiAware lighttpd software redirecting. The hostname I’m going to resolves to the local IP address (and vice-versa). Nothing is ever leaving my local network in this case.

---

<div class="post-metadata">

**Author:** ![technodevotee](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/technodevotee/32/136901_2.png) [@technodevotee](https://discussions.flightaware.com/u/technodevotee)\
**Post date:** [June 14, 2020, 3:06pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/4 "2020-06-14T15:06:05Z")

</div>

the default name is raspberrypi so if you’ve only got one Pi and your router is working OK, using [http://raspberrypi:8080](http://raspberrypi:8080) should work

---

<div class="post-metadata">

**Author:** ![carstenks](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/carstenks/32/116236_2.png) [@carstenks](https://discussions.flightaware.com/u/carstenks)\
**Post date:** [June 14, 2020, 5:12pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/5 "2020-06-14T17:12:32Z")

</div>

> [@jwbernin](#):
>
> This isn’t my host redirecting - this is the PiAware lighttpd software redirecting. The hostname I’m going to resolves to the local IP address (and vice-versa). Nothing is ever leaving my local network in this case.

Then make it clear, what you’re trying to do - You can’t redirect local without some DNS-settings on your own DNS-server.

I have no clue about lighttpd, but i have worked with network for donkeys years. PiAware never calls for https - I can’t figure out, what you are trying to do - Post some more info. (hostnames, etc.)

---

<div class="post-metadata">

**Author:** ![jwbernin](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jwbernin/32/66174_2.png) [@jwbernin](https://discussions.flightaware.com/u/jwbernin)\
**Post date:** [June 14, 2020, 6:42pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/6 "2020-06-14T18:42:25Z")

</div>

Well, after opening up some browser diagnostics, it turns out it’s the idiot browser doing an internal redirect to https due to the combination of unmodifiable HSTS settings and using a .dev domain. DNS is all correct, everything resolves the way it’s supposed to, then Chrome goes and tells me “I know you said http, but you really means https so I’m redirecting you to https.”

Effing Chrome. (And yes, Firefox does the same stupid stuff.)

---

<div class="post-metadata">

**Author:** ![tech0](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/tech0/32/113380_2.png) [@tech0](https://discussions.flightaware.com/u/tech0)\
**Post date:** [June 14, 2020, 6:50pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/7 "2020-06-14T18:50:37Z")

</div>

There is a setting in Firefox to not automatically use HTTPS.  
Look in about:config.

---

<div class="post-metadata">

**Author:** ![astrodeveloper](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/astrodeveloper/32/117096_2.png) [@astrodeveloper](https://discussions.flightaware.com/u/astrodeveloper)\
**Post date:** [June 15, 2020, 4:54pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/9 "2020-06-15T16:54:21Z")

</div>

If you use the ip address then the Firefox browser ignores http/https stuff. Try your ip like this: 192.168.251.32:8080/ in the address window. (at least, that is how it seems to be working here) Good luck

---

<div class="post-metadata">

**Author:** ![jwbernin](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jwbernin/32/66174_2.png) [@jwbernin](https://discussions.flightaware.com/u/jwbernin)\
**Post date:** [June 15, 2020, 5:38pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/10 "2020-06-15T17:38:19Z")

</div>

I’ve managed to isolate the problem (see my earlier post re: HSTS and .dev domains) and to resolve it by enabling HTTPS on the lighttpd server with a LetsEncrypt certificate.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/system/32/38558_2.png) [@system](https://discussions.flightaware.com/u/system)\
**Post date:** [June 15, 2021, 5:38pm UTC](https://discussions.flightaware.com/t/piaware-web-interface/66085/11 "2021-06-15T17:38:30Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
