include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
My setup looks slightly different from the one used for that howto, as I
have a host/firewall/nginx box that houses client applications in lxc-
containers. I am having trouble in setting up the ~ .php$ bit in that
context. My config lookis like this:
SCRIPT_FILENAME is a parameter that the fastcgi server will read, and
it will expect it to refer to a file on its filesystem that it should
load and process.
So: if the client requests the url /one/two.php, what file on the
10.10.10.3 server do you want that to correspond to? (From the
perspective
of the fasctcgi server, in case it is chroot’ed.)
10.10.10.3 server do you want that to correspond to? (From the perspective
of the fasctcgi server, in case it is chroot’ed.)
Make SCRIPT_FILENAME be that filename.
Thanks a lot for your pointers, which nudged me in the right direction.
After also finding Nginx Library
specified-error/ I came up with the following, which is working (a
“info.php” script at the documentroot containing a call to “phpinfo()”
is
rendered properly and the output has “Server API: CGI/FastCGI”):
server {
listen 443;
server_name XXX.org XXX;
client_max_body_size 40M;
# SSL is using CACert credentials
ssl on;
ssl_certificate /etc/ssl/private/cacert.XXX.org.pem;
ssl_certificate_key
/etc/ssl/private/cacert.XXX.org_privatkey.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:!LOW:RC4+RSA:+HIGH:+MEDIUM:
+SSLv3:+EXP;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params;
}
}
As I wrote, this works fine for a plain “index.php” containing
“phpinfo()”.
I now want to use the setup to run fengoffice along the lines of http://www.howtoforge.com/how-to-set-up-a-feng-office-suite-web-server-on-
ubuntu-server-10.10 . So I change the above setup to point at root
“/var/www/www.feng.graumannschaft.org/web/” which is where fenoffice’s
index.php resides on 10.10.10.3. THis however does not work and the
browser
pointed at the urls reports
Unable to connect
Iceweasel can’t establish a connection to the server at 10.10.10.3.
I seem to be missing rewriting somewhere, but no prowling the internet
has
given me an answer that will work. Can someone nudge me into the right
direction (again) how to fix this?
Thanks for any pointers, Joh
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.