K
K
krotish2010-11-11 21:45:19
Nginx
krotish, 2010-11-11 21:45:19

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

2 answer(s)
A
Alexey Zhurbitsky, 2010-11-12
@krotish

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;
                }
        }

S
Sergey, 2010-11-11
@bondbig

one)

And it requires the web server directive AllowOverride All
This directive simply means that the program puts .htaccess somewhere in its directories
. Describe its analogue using nginx.
2) Why do you need php-fpm? Do you understand the meaning of replacing mod_php with php-fpm correctly?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question