Apache Basic Authentication in ProxyPass

 1<VirtualHost *:443>
 2    ServerName example.com
 3 
 4        SSLEngine on
 5        SSLCertificateFile      /etc/httpd/conf.d/ssl/2017-example.com.crt
 6        SSLCertificateKeyFile   /etc/httpd/conf.d/ssl/2017-example.com.key
 7        SSLCertificateChainFile /etc/httpd/conf.d/ssl/2017-example.com.bundle.crt
 8 
 9 
10    ProxyPreserveHost On
11 
12    ProxyPass / http://127.0.0.1:8025/
13    ProxyPassReverse / http://127.0.0.1:8025/
14 
15        <Location />
16           Options -Indexes
17           AllowOverride All
18 
19           AuthType Basic
20           AuthName "Development Area"
21           AuthUserFile /var/www/sites/.htpasswd
22           Require valid-user
23        </Location>
24</VirtualHost>
...