#2461: Compile instructions for nginx web server
-------------------------+--------------------------------------------------
Reporter: amason | Owner: [email protected]
Type: enhancement | Status: new
Priority: normal | Milestone: 6.3
Component: BOOK | Version: SVN
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
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/[EMAIL PROTECTED]' -e
's@/usr/html@/var/www/nginx-
[EMAIL PROTECTED]' \
-e "s@'/usr'@'/var/www/nginx-default'@g" objs/Makefile
sed -i -e '[EMAIL PROTECTED]/mime.types@/etc/nginx/[EMAIL PROTECTED]' -e
'[EMAIL PROTECTED]/@/var/log/@g' \
-e '[EMAIL PROTECTED] 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.
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2461>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page