blob: bc1f83c60388629979b2db44e0154fdaedd02744 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#
# 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%%;
}
}
|