<VirtualHost <fqdn>:80>
ServerAdmin foo@bar.com
ServerName puppetmaster_foreman
ServerAlias puppetmaster_foreman


<Directory />
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AuthType Basic
AuthName "foreman"
AuthUserfile /etc/foreman/.htaccess
Require valid-user
</Directory>

ProxyPass / http://127.0.0.1:3000/ timeout=180

ErrorLog /var/log/puppet/foreman_error.log
CustomLog /var/log/puppet/foreman_access.log combined

</VirtualHost>