doing perl web stuff with nginx

This commit is contained in:
Dan Buch
2011-01-03 16:40:52 -05:00
parent 70b5f7b160
commit 50c240b0e1
8 changed files with 174 additions and 0 deletions

16
web/Makefile Normal file
View File

@@ -0,0 +1,16 @@
ROOT ?= $(PWD)
HTTP_PORT ?= 49228
serve: nginx.conf
nginx -p $(ROOT)/ -c $(ROOT)/$<
nginx.conf: nginx.conf.in
cat $< | \
sed -e 's@__ROOT__@$(ROOT)@g' \
-e 's@__HTTP_PORT__@$(HTTP_PORT)@g' > $@
.PHONY: serve