24 lines
586 B
Plaintext
24 lines
586 B
Plaintext
|
REQUIREMENTS
|
||
|
|
||
|
PRE-INSTALL
|
||
|
|
||
|
POST-INSTALL
|
||
|
|
||
|
lighttpd runs as a different user ('lighttpd') by default for security reasons.
|
||
|
Do the following after installing the port:
|
||
|
|
||
|
useradd -s /bin/false lighttpd
|
||
|
groupadd lighttpd
|
||
|
touch /var/www/logs/access_log
|
||
|
touch /var/www/logs/error_log
|
||
|
chown lighttpd:lighttpd /var/www/logs/*
|
||
|
|
||
|
If you wish to enable SSL support, uncomment the relevant lines in
|
||
|
/etc/lighttpd.conf and generate a self-signed certificate:
|
||
|
|
||
|
openssl req -new -x509 \
|
||
|
-keyout /etc/ssl/certs/lighttpd.pem -out /etc/ssl/certs/lighttpd.pem \
|
||
|
-days 365 -nodes
|
||
|
|
||
|
PRECAUTION
|