SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
nginx
Primary tabs
Prerequisites
yum -y install pcre-develInstallation
Download the latest version:
cd /extra/src
wget https://nginx.org/download/nginx-1.27.2.tar.gz
tar zxf nginx-1.27.2.tar.gz
cd nginx-1.27.2Configure, build and install:
./configure
make
make installDaemontools Startup
Assuming you have already installed daemontools., create the directories to hold the lighttpd run and logging scripts:
mkdir -p /var/service
cd /var/service
mkdir -m 1755 nginx
cd nginxCreate the run script (/var/service/nginx/run), with the following:
#! /bin/sh
exec 2>&1
exec /usr/local/nginx/sbin/nginxOnce you have saved the file, change it's permissions to it can be executed:
chmod 700 runCreate the logging service:
mkdir -m 755 log
cd log
wget http://qmail.jms1.net/scripts/run.log
mv run.log run
chmod 700 runModify /usr/local/nginx/conf/nginx.conf to have it run in the foreground:
daemon off;Create the symbolic link to start the nginx service
ln -s /var/service/nginx /service/nginxResources
Nginx and PHP-FPM Configuration and Optimizing Tips and Tricks
- Log in to post comments