freebsd-ports/www/woadaptor/files/FastCGI-nginx.conf.in
Edwin Groothuis e6b6e3491e [NEW PORTS] www/webobjects(+) Apple WebObjects ports bundle
This is a bundle of several ports covering many typical requirements
for building an Apple WebObjects deployment environment. Each port
is or has a dependancy with some other port in the bundle, and have
therefore been lodged collectively.

	www/woadaptor

	WOAdaptor is a collection of WebObjects WebServer Adaptors.
	These include an Apache Module, CGI and FastCGI adaptors

	This is a subproject of Project Wonder and is an effort to
	pool enhancements and bug fixes for Apple's open source
	codebase.

	WWW: http://wonder.sourceforge.net/WOAdaptor.html

PR:		ports/117299
Submitted by:	Quinton Dolan <q@onthenet.com.au>
2008-06-13 06:29:46 +00:00

31 lines
878 B
Text

#
# This is a sample snippet from Nginx's config file that is needed to
# run WebObjects FastCGI adaptor
#
# You will need to use a standalone FastCGI server to run the adaptor.
# This can be done by setting woadaptor_enable="YES" in /etc/rc.conf
# and running %%PREFIX%%/etc/rc.d/woadaptor start
#
# Note: You must ensure that the web server user has permission to use
# the socket.
server {
listen 80
# WebObjects Adaptor config
location /cgi-bin/WebObjects {
set $path_info "";
set $script_name /cgi-bin/WebObjects;
if ($fastcgi_script_name ~ "^/cgi-bin/WebObjects(/.+)$") {
set $path_info $1;
}
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_NAME $script_name;
fastcgi_pass unix:/tmp/woadaptor.sock;
include fastcgi_params;
}
location /WebObjects {
root %%PREFIX%%/%%WODOCROOT%%;
}
}