<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=NGINX_Authentication</id>
	<title>NGINX Authentication - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=NGINX_Authentication"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=NGINX_Authentication&amp;action=history"/>
	<updated>2026-05-10T15:54:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=NGINX_Authentication&amp;diff=167&amp;oldid=prev</id>
		<title>imported&gt;Jeremy-busk at 19:13, 7 March 2019</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=NGINX_Authentication&amp;diff=167&amp;oldid=prev"/>
		<updated>2019-03-07T19:13:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Using PAM &amp;amp; HTTP Auth for reverse proxy&lt;br /&gt;
&lt;br /&gt;
nginx -v&lt;br /&gt;
nginx version: nginx/1.14.0 (Ubuntu)&lt;br /&gt;
&lt;br /&gt;
nano /etc/pam.d/nginx&lt;br /&gt;
```&lt;br /&gt;
@include common-auth&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
In nginx site server config add&lt;br /&gt;
```&lt;br /&gt;
location /secure {&lt;br /&gt;
        auth_pam                &amp;quot;My secured location&amp;quot;;&lt;br /&gt;
        auth_pam_service_name   &amp;quot;nginx&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
add permission for nginx user to /etc/shadow&lt;br /&gt;
```&lt;br /&gt;
sudo usermod -aG shadow www-data&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Check /etc/nginx/nginx.conf for the account used for nginx www-data. It can sometimes be configured to nobody.&lt;br /&gt;
&lt;br /&gt;
add user&lt;br /&gt;
```&lt;br /&gt;
adduser myuser --gecos &amp;quot;&amp;quot;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
# Handling Requests&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://stackoverflow.com/questions/40645270/nginx-auth-request-handler-accessing-post-request-body&lt;br /&gt;
&lt;br /&gt;
# Resources&lt;/div&gt;</summary>
		<author><name>imported&gt;Jeremy-busk</name></author>
	</entry>
</feed>