Opened 16 years ago

Closed 12 years ago

Last modified 7 years ago

#2461 closed enhancement (wontfix)

Compile instructions for nginx web server

Reported by: Aaron Mason Owned by: blfs-book@…
Priority: normal Milestone: x-future
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

1) Configure the server.

./configure --prefix=/usr --conf-path=/etc/nginx/nginx.conf \

--error-log-path=/var/log/error.log --http-log-path=/var/log/access.log \ --pid-path=/var/run/nginx.pid --lock-path=/var/lock \ --http-fastcgi-temp-path=/tmp/fcgi --http-client-body-temp-path=/tmp/cb \ --http-proxy-temp-path=/tmp/proxy

2) There are a lot of hard-coded paths in the Makefile. These sets them to paths

outside of the /usr tree.

sed -i -e 's@/usr/logs@/var/log@g' -e 's@/usr/html@/var/www/nginx-default@g' \

-e "s@'/usr'@'/var/www/nginx-default'@g" objs/Makefile

sed -i -e 's@conf/mime.types@/etc/nginx/mime.types@g' -e 's@logs/@/var/log/@g' \

-e 's@root html;@root /var/www/nginx-default;@g' conf/nginx.conf

3) Compile and install

make make install

4) Copy the base HTML files to the document root:

cp html/* /var/www/nginx-default

5) Install nginx's init scripts.

I have enclosed a patch to add an init script for BLFS-bootscripts.

Attachments (1)

blfs-bootscripts-20071221_add-nginx.patch (1.8 KB ) - added by Aaron Mason 16 years ago.
Adds bootscripts for nginx

Download all attachments as: .zip

Change History (5)

by Aaron Mason, 16 years ago

Adds bootscripts for nginx

comment:1 by Aaron Mason, 16 years ago

Forgot to mention something - this relies on PCRE as a prerequisite.

comment:2 by Randy McMurchy, 16 years ago

Milestone: 6.3future

comment:3 by Armin K, 12 years ago

Resolution: wontfix
Status: newclosed

One http daemon is enough for BLFS.

comment:4 by bdubbs@…, 7 years ago

Milestone: futurex-future

Milestone renamed

Note: See TracTickets for help on using tickets.