make lighttpd happy so it can start

This commit is contained in:
Miroslav Suchý 2015-05-19 15:28:33 +02:00
parent fc8f7af8ae
commit 7455fd6a63
2 changed files with 8 additions and 2 deletions

View file

@ -75,7 +75,7 @@ var.socket_dir = home_dir + "/sockets"
####################################################################### #######################################################################
## ##
## Load the modules. ## Load the modules.
include "modules.conf" #include "modules.conf"
server.modules = ( server.modules = (
"mod_access", "mod_access",
"mod_setenv", "mod_setenv",
@ -210,7 +210,7 @@ server.network-backend = "linux-sendfile"
## ##
## With SELinux enabled, this is denied by default and needs to be allowed ## With SELinux enabled, this is denied by default and needs to be allowed
## by running the following once : setsebool -P httpd_setrlimit on ## by running the following once : setsebool -P httpd_setrlimit on
#server.max-fds = 2048 server.max-fds = 2048
## ##
## Stat() call caching. ## Stat() call caching.

View file

@ -80,6 +80,12 @@
when: not devel when: not devel
include: "install_certs.yml" include: "install_certs.yml"
- name: allow lighttpd set fds limit
seboolean: name=httpd_setrlimit state=yes persistent=yes
- name: create directory for compress module of lighttpd
file: path=/var/cache/lighttpd/compress owner=lighttpd group=lighttpd mode=0644 state=directory
# mime default to text/plain and enable dirlisting for indexes # mime default to text/plain and enable dirlisting for indexes
- name: update lighttpd configs - name: update lighttpd configs
copy: src="lighttpd/{{ item }}" dest="/etc/lighttpd/conf.d/{{ item }}" owner=root group=root mode=0644 copy: src="lighttpd/{{ item }}" dest="/etc/lighttpd/conf.d/{{ item }}" owner=root group=root mode=0644