Answer the question
In order to leave comments, you need to log in
Switching from Apache to nginx
In general, now I have configured and installed a bunch of nginx + php-fpm (ubuntu 10.04). The following problem has arisen: it is necessary to install a qdPM
project management system .
And it requires the AllowOverride All web server directive . Of course this applies to Apache.
So how do you make this system work under nginx?
here is a piece of the log:
2010/11/11 18:23:19 [error] 20285#0: *72 open() "/var/www/*****.ru/pm/qdpm/index.php/home/validateLoginForm" failed (20: Not a directory), client: xx.xx.174.10, server: pm.*****.ru, request: "POST /qdpm/index.php/home/validateLoginForm HTTP/1.1", host: "pm.*****.ru", referrer: "http://pm.*****.ru/qdpm/"
Answer the question
In order to leave comments, you need to log in
If I understand the problem correctly, then the solution will be something like this
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?$1 last;
}
}
one)
And it requires the web server directive AllowOverride AllThis directive simply means that the program puts .htaccess somewhere in its directories
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question