diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-22 19:57:29 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-23 20:10:33 +0700 |
commit | f441050541a66c6220a0a4990ac79acd64f062f5 (patch) | |
tree | 9183f6b2bdaf1f4c0150b3ad34c51b7a522f25b7 /network/lighttpd2/conf | |
parent | 37ca781e58ff391f3913607f46da9673858444fd (diff) |
network/lighttpd2: Removed (still too unripe).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/lighttpd2/conf')
-rw-r--r-- | network/lighttpd2/conf/angel.conf | 6 | ||||
-rw-r--r-- | network/lighttpd2/conf/lighttpd.conf | 95 | ||||
-rw-r--r-- | network/lighttpd2/conf/lighttpd2.logrotate | 32 | ||||
-rw-r--r-- | network/lighttpd2/conf/php-fpm.lua | 10 | ||||
-rw-r--r-- | network/lighttpd2/conf/rc.lighttpd2 | 70 |
5 files changed, 0 insertions, 213 deletions
diff --git a/network/lighttpd2/conf/angel.conf b/network/lighttpd2/conf/angel.conf deleted file mode 100644 index d02e674fe5dc4..0000000000000 --- a/network/lighttpd2/conf/angel.conf +++ /dev/null @@ -1,6 +0,0 @@ -user "lighttpd"; -group "lighttpd"; - -max_open_files 16384; - -copy_env ( "PATH" ); diff --git a/network/lighttpd2/conf/lighttpd.conf b/network/lighttpd2/conf/lighttpd.conf deleted file mode 100644 index 1a62342940373..0000000000000 --- a/network/lighttpd2/conf/lighttpd.conf +++ /dev/null @@ -1,95 +0,0 @@ -# Sample /etc/lighttpd2/lighttpd.conf file -# Assembled and commented by Matteo Bernardini <ponce@slackbuilds.org> - -# Default modules here should cover most needs: if you want to cut -# down some, consider that mod_access and mod_accesslog are mandatory. -# http://redmine.lighttpd.net/projects/lighttpd2/wiki/Modules -setup { - module_load ( "mod_fastcgi", "mod_status", "mod_access", "mod_accesslog", "mod_dirlist", "mod_deflate", "mod_redirect", "mod_rewrite", "mod_vhost", "mod_lua" ); -# mod_access, -# mod_accesslog, -# mod_auth, -# mod_balance, -# mod_cache_disk_etag, -# mod_debug, -# mod_deflate, -# mod_dirlist, -# mod_expire, -# mod_fastcgi, -# mod_flv, -# mod_fortune, -# mod_limit, -# mod_lua, -# mod_memcached, -# mod_openssl, -# mod_progress, -# mod_proxy, -# mod_redirect, -# mod_rewrite, -# mod_scgi, -# mod_status, -# mod_userdir, -# mod_vhost, - - lua.plugin "/etc/lighttpd2/php-fpm.lua"; - - listen "0.0.0.0:80"; - listen "[::]:80"; - - log ["debug" => "", "*" => "/var/log/lighttpd2/error.log"]; - accesslog "/var/log/lighttpd2/access.log"; - accesslog.format "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""; - - static.exclude_extensions ( ".php", ".pl", ".fcgi", "~", ".inc" ); -} - -# http://redmine.lighttpd.net/projects/lighttpd2/wiki/Conditions - -# Run php through php-fpm: be sure to read README.SLACKWARE -# http://redmine.lighttpd.net/projects/lighttpd2/wiki/Howto_PHP -php = { - phpfpm { fastcgi "unix:/var/run/lighttpd2/php-fpm.sock"; }; -}; - -if req.path == "/status" { status.info; } - -include "/etc/lighttpd2/mimetypes.conf"; - -docroot "/var/www/htdocs-lighttpd"; - -# If you install phpmyadmin from the SBo script, it should go there. -# Uncomment below, after having installed. -#alias ( "/phpmyadmin" => "/var/www/htdocs/phpmyadmin" ); - -# Directory listings are enabled by default only for an eventual -# "pub" folder in the docroot: change as needed. -# http://redmine.lighttpd.net/projects/lighttpd2/wiki/Mod_dirlist -if req.path =~ "^/pub/" { - dirlist; -} - -# Directory index files: this commented below can be useful if you -# enable php. -#index ( "index.php", "index.html" ); -index ( "index.html" ); - -# If you want to use urls like http://example.com/index.php/some/path -# (using your php files like directories), you need this (ex. wordpress) -#pathinfo; - -# Some useful rules to avoid access to sensitive files from remote. -# This example still applies to wordpress -#if req.remoteip != "127.0.0.1" { -# if req.path =~ "^/wp-includes/" { access.deny; } -#} - -# Deny access to some file-extensions -# ~ is for backupfiles from vi, emacs, joe, ... -# .inc is often used for code includes which should in general not be -# part of the document-root -if phys.path =$ "~" or phys.path =$ ".inc" { - if phys.is_file { access.deny; } -} - -# Uncomment this to enable php -#php; diff --git a/network/lighttpd2/conf/lighttpd2.logrotate b/network/lighttpd2/conf/lighttpd2.logrotate deleted file mode 100644 index a85c1efc239f5..0000000000000 --- a/network/lighttpd2/conf/lighttpd2.logrotate +++ /dev/null @@ -1,32 +0,0 @@ -/var/log/lighttpd2/access.log /var/log/lighttpd2/error.log { - daily - missingok - copytruncate - rotate 30 - create 0644 @LIGHTTPD_USER@ root - compress - notifempty - su lighttpd root - sharedscripts - postrotate - if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then - /etc/rc.d/rc.lighttpd2 restart - fi - endscript -} - -/var/log/lighttpd2/lighttpd2.log { - daily - missingok - copytruncate - rotate 30 - create 0644 root root - compress - notifempty - sharedscripts - postrotate - if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then - /etc/rc.d/rc.lighttpd2 restart - fi - endscript -} diff --git a/network/lighttpd2/conf/php-fpm.lua b/network/lighttpd2/conf/php-fpm.lua deleted file mode 100644 index f26bb9d796664..0000000000000 --- a/network/lighttpd2/conf/php-fpm.lua +++ /dev/null @@ -1,10 +0,0 @@ -local function phpfpm(act) - return action.when(physical.path:suffix(".php"), - action.when(physical.is_file:is(), act), - action.when(request.path:eq("/fpm-status"), act) - ) -end - -actions = { - ["phpfpm"] = phpfpm, -} diff --git a/network/lighttpd2/conf/rc.lighttpd2 b/network/lighttpd2/conf/rc.lighttpd2 deleted file mode 100644 index 635092e071075..0000000000000 --- a/network/lighttpd2/conf/rc.lighttpd2 +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# Copyright (c) 2007, Daniel de Kok <moc.mikciat@leinad> -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# Adapted for lighttpd2 by Matteo Bernardini <ponce@slackbuilds.org> - -LIGHTTPD=/usr/sbin/lighttpd2 -LIGHTTPD_OPTIONS="-c /etc/lighttpd2/angel.conf" -PIDOF_WORKER=$(pidof lighttpd2-worker) -PIDOF=$(pidof lighttpd2) - -lighttpd_start() { - echo "Starting lighttpd2: $LIGHTTPD" - if [ "$PIDOF" ]; then - echo "Already running!" - return - fi - $LIGHTTPD $LIGHTTPD_OPTIONS >> /var/log/lighttpd2/lighttpd2.log 2>&1 & - sleep 2 - echo $(pidof lighttpd2) > /var/run/lighttpd2/lighttpd2.pid -} - -lighttpd_stop() { - echo "Stopping lighttpd2: $LIGHTTPD" - if [ "$PIDOF" ]; then - kill $PIDOF - sleep 2 - rm /var/run/lighttpd2/lighttpd2.pid - else - echo "Not running!" - fi -} - -lighttpd_restart() { - lighttpd_stop - PIDOF= - sleep 2 - lighttpd_start -} - -case "$1" in -'start') - lighttpd_start - ;; -'stop') - lighttpd_stop - ;; -restart) - lighttpd_restart - ;; -*) - echo "usage $0 start|stop|restart" -esac |