+ServerName localhost
ServerAdmin phd@{{ inventory_hostname }}
MaxConnectionsPerChild 10
AuthName Apache
AuthUserFile /usr/local/apache2/data/apache.passwd
<RequireAll>
- Require ip 127.0.0.1 {{ inventory_hostname }}
+ Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
Require user phd
</RequireAll>
</Location>
<IfModule mod_info.c>
<Location /server-info>
SetHandler server-info
- Require ip 127.0.0.1 {{ inventory_hostname }}
+ Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
</Location>
</IfModule>
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
- Require ip 127.0.0.1 {{ inventory_hostname }}
+ Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
</Location>
ExtendedStatus On
</IfModule>
<Location /printenv.shtml>
- Require ip 127.0.0.1 {{ inventory_hostname }}
+ Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
</Location>
<IfModule mod_env.c>
ErrorDocument 404 /~phd/Bookmarks/notfound.html
</Location>
-<VirtualHost {{ inventory_hostname }}:80>
+<VirtualHost {{ ansible_facts.default_ipv4.address }}:80>
ServerName unknown.invalid
DocumentRoot /home/phd/Internet/WWW/htdocs/_default_/
ErrorDocument 404 /nothing.html