# Using http basic authentication with custom form

**URL:** <https://www.ruby-forum.com/t/using-http-basic-authentication-with-custom-form/223988>\
**Category:** NGINX\
**Created:** [October 25, 2012, 5:08pm UTC](https://www.ruby-forum.com/t/using-http-basic-authentication-with-custom-form/223988 "2012-10-25T17:08:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 25, 2012, 5:08pm UTC](https://www.ruby-forum.com/t/using-http-basic-authentication-with-custom-form/223988/1 "2012-10-25T17:08:20Z")

</div>

Hello,

Is there a way to use http basic authentication with nginx with a custom  
form?

I heard that it may be possible to use auth\_request to do this but am  
unsure how

My main goal is to avoid the standard form that pops up with http basic  
authentication and supply my own form.

That way I still have the cacheing benefits of auth\_basic with a custom  
form

Any suggestions?
