X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fapache%2Ftemplates%2F001-phd.conf;h=f4a91fb95b7f650b932565c320a53eb8f431fe66;hb=08d978858ba0f05bed0660126d5cccab33936b42;hp=5eb26f6cc58b0a18711006fcb0c15a854a926a5d;hpb=64f279e592bc291ea76ff9e2246f1fc1760c6e83;p=ansible.git diff --git a/playbooks/debian/roles/apache/templates/001-phd.conf b/playbooks/debian/roles/apache/templates/001-phd.conf index 5eb26f6..f4a91fb 100644 --- a/playbooks/debian/roles/apache/templates/001-phd.conf +++ b/playbooks/debian/roles/apache/templates/001-phd.conf @@ -1,3 +1,4 @@ +ServerName localhost ServerAdmin phd@{{ inventory_hostname }} MaxConnectionsPerChild 10 @@ -34,7 +35,7 @@ AddDefaultCharset koi8-r AuthName Apache AuthUserFile /usr/local/apache2/data/apache.passwd - Require ip 127.0.0.1 {{ inventory_hostname }} + Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }} Require user phd @@ -62,21 +63,21 @@ Scriptsock data/cgisock SetHandler server-info - Require ip 127.0.0.1 {{ inventory_hostname }} + Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }} SetHandler server-status - Require ip 127.0.0.1 {{ inventory_hostname }} + Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }} ExtendedStatus On - Require ip 127.0.0.1 {{ inventory_hostname }} + Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }} @@ -107,21 +108,21 @@ RemoveHandler .py ErrorDocument 404 /~phd/Bookmarks/notfound.html - + ServerName unknown.invalid -DocumentRoot /home/phd/Internet/WWW/htdocs/_default_/ +DocumentRoot /usr/local/apache2/_default_/ ErrorDocument 404 /nothing.html - + Require all granted -DocumentRoot /home/phd/Internet/WWW/htdocs/_default_/ +DocumentRoot /usr/local/apache2/_default_/ ErrorDocument 404 /nothing.html - + Require all granted