puppet/modules/rhizo_base/templates/portal.conf.erb
Puppet bf7dff75d9 Wifi CP fixes: Apache listen and servername
Use the IP address for a Servername and make sure we listen on port 81
2023-11-14 16:10:28 -06:00

23 lines
526 B
Text

<Directory /var/rhizomatica/portal>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ http://<%= @wifi_ip %>/index.php [R]
Require all granted
</Directory>
<VirtualHost <%= @wifi_ip %>:81>
#ServerName www.example.com
ServerName <%= @wifi_ip %>
ServerAdmin webmaster@localhost
DocumentRoot /var/rhizomatica/portal
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/portal_error.log
CustomLog ${APACHE_LOG_DIR}/portal_access.log combined
</VirtualHost>