# Nginx httpasswd for kirby panel

**URL:** <https://forum.getkirby.com/t/nginx-httpasswd-for-kirby-panel/4755>\
**Category:** Questions\
**Tags:** v2\
**Created:** [July 22, 2016, 2:48pm UTC](https://forum.getkirby.com/t/nginx-httpasswd-for-kirby-panel/4755 "2016-07-22T14:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oracle](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@oracle](https://forum.getkirby.com/u/oracle)\
**Post date:** [July 22, 2016, 2:48pm UTC](https://forum.getkirby.com/t/nginx-httpasswd-for-kirby-panel/4755/1 "2016-07-22T14:48:18Z")

</div>

I just started using Kirby with Nginx and I’m having issues protecting the panel for my site…  
I want to apply a authentication on the site panel… for some reason I am still able to access the panel with this configuration:

` location /panel/ { auth_basic "Restricted"; auth_basic_user_file /etc/nginx/.htpasswd_kodu; }`

any insight ?

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [July 22, 2016, 3:04pm UTC](https://forum.getkirby.com/t/nginx-httpasswd-for-kirby-panel/4755/2 "2016-07-22T15:04:24Z")

</div>

I am no expert with Nginx but it looks like your rule only applies to `/panel/` itself and not to URLs like `/panel/login`.

---

<div class="post-metadata">

**Author:** ![simon2017](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/simon2017/32/7442_2.png) [@simon2017](https://forum.getkirby.com/u/simon2017)\
**Post date:** [July 22, 2016, 3:07pm UTC](https://forum.getkirby.com/t/nginx-httpasswd-for-kirby-panel/4755/3 "2016-07-22T15:07:21Z")

</div>

when `panels/login` dont works, maybe its a Problem whit your Configuration, [Hope This is Helpfull For you](https://www.howtoforge.com/basic-http-authentication-with-nginx)

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:57pm UTC](https://forum.getkirby.com/t/nginx-httpasswd-for-kirby-panel/4755/4 "2025-02-06T16:57:32Z")

</div>


