# Could people using auth-request please send me their actual nginx.conf files please?

**URL:** <https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869>\
**Category:** NGINX\
**Created:** [October 21, 2012, 2:58pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869 "2012-10-21T14:58:08Z")\
**Posts on this page:** 5\
**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 21, 2012, 2:58pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869/1 "2012-10-21T14:58:08Z")

</div>

If you are successfully using auth request, -please send me your actual  
nginx.conf file.

I am a relative newbie on nginx and cgi programming so actual examples  
will  
be very helpful.

Thanks to all.

My email is: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 21, 2012, 6:30pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869/2 "2012-10-21T18:30:17Z")

</div>

On 21 October 2012 13:57, Bob S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If you are successfully using auth request, -please send me your actual  
> nginx.conf file.

I’m not using this module but, reading its README, it seems trivially  
replaceable with X-Accel-Redirect and an “internal” location.

I’ll be blogging our specific setup sometime soon, but in production  
I’m basically using a modified version of what’s described here:  
[http://ls4.sourceforge.net/doc/howto/ddt.html](http://ls4.sourceforge.net/doc/howto/ddt.html).

For us, it works reliably, efficiently, without a 3rd party module,  
delivering gigs of data a day.  
I literally can’t see what extra that module gives you.

## Regards, Jonathan

Jonathan M. // Oxford, London, UK

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 24, 2012, 2:24pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869/3 "2012-10-24T14:24:27Z")

</div>

That link is dead.

Also, I am trying to use auth\_request to provide access to a protected  
directory, whereas it looks like X-Accel-Redirect is used to  
provide download access to a particular file.

Bob S.

On Sun, Oct 21, 2012 at 12:29 PM, Jonathan M.  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 24, 2012, 2:56pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869/4 "2012-10-24T14:56:02Z")

</div>

On 24 October 2012 13:23, Bob S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> That link is dead.

Works for me.

user@host:~$ curl -I [http://ls4.sourceforge.net/doc/howto/ddt.html](http://ls4.sourceforge.net/doc/howto/ddt.html)  
HTTP/1.1 200 OK  
Server: Apache/2.2.15 (CentOS)  
Vary: Host  
Last-Modified: Mon, 11 Apr 2011 09:36:27 GMT  
ETag: “2ab2-4a0a14f45dcc0”  
Accept-Ranges: bytes  
Content-Length: 10930  
[snip]

> Also, I am trying to use auth\_request to provide access to a protected  
> directory, whereas it looks like X-Accel-Redirect is used to provide  
> download access to a particular file.

Reading

> **[ngx\_http\_auth\_request\_module: a29d74804ff1 README](http://mdounin.ru/hg/ngx_http_auth_request_module/file/a29d74804ff1/README)**

slightly more carefully, I understand the distinction you’re seeing. I  
still think it’s trivially replaceable with X-Accel-Redirect _if_ you  
are in control of the URI structure.

Do read that page I linked - it really can do this!

## J

Jonathan M. // Oxford, London, UK

> **[Jonathan Matthews :: Words Typed, Great Rates For Cash](https://www.jpluscplusm.com)**

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 24, 2012, 9:51pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869/5 "2012-10-24T21:51:39Z")

</div>

2012/10/24 Jonathan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Do read that page I linked - it really can do this!

I can confirm, that this link  
[http://ls4.sourceforge.net/doc/howto/ddt.html](http://ls4.sourceforge.net/doc/howto/ddt.html) isn’t dead.  
Maybe you can do a search for “Direct Data Transfer using Nginx’s  
X-Accel-Redirect” (header), “LS4 v1.0.0 documentation” (title) and  
Sourceforge 😉

Regards, Andre J.
