Skip to content

Instantly share code, notes, and snippets.

@benhaan
benhaan / nginx.conf
Created August 22, 2009 20:08 — forked from soffes/nginx.conf
user nginx;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
server {
listen 80;
server_name example.com;
access_log /var/log/nginx/example.access.log main;
location / {
root /var/www/example.com/html;
index index.php index.html;
#!/bin/bash
. /etc/rc.d/init.d/functions
INITLOG_ARGS=""
nginx=/usr/local/nginx/sbin/nginx
prog=nginx
pidfile=${PIDFILE-/var/run/nginx.pid}
lockfile=${LOCKFILE-/var/lock/subsys/nginx}
RETVAL=0
./configure \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/subsys/nginx.lock \
--http-proxy-temp-path=/var/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \
--http-client-body-temp-path=/var/tmp/nginx/client/ \
--with-http_ssl_module \