0
votes
1answer
64 views

NginX Causing PHP File To Be Executed Twice

I'm between a rock and a hard place trying to figure out why this is going on. For some reason, when I open my website the index.php file is being executed. I have been able to narrow it down to ...
0
votes
0answers
63 views

Nginx Virtualhost; Can't Add Simple Rewrite Rule

I've come up with this pretty handy Nginx virtualhost file for a PHP Codeigniter site. It works as-is, but I'm trying to do additional rewrites and I'm not having any luck. server { listen 80; ...
1
vote
1answer
344 views

Nginx & PHP-FPM - Unable to open primary script ERROR

I have a blog with some rewrite rules when in comes to viewing single posts. The viewing is handled by a file named view.php. I am using some rewrite rules in my vhost config as follows: location ...
0
votes
0answers
59 views

Nginx not passing rewrite to FPM

Here are the pertinent lines of my nginx.conf file. location / { try_files $uri $uri/ /index.php @rewrite; } location @rewrite { rewrite ^/customer/(.*)$ /customersDisplay.php?id=$1; ...
0
votes
1answer
49 views

After rewriting, nginx doesn't use php-fastcgi

I'm having trouble with an nginx rewrite. I want to rewrite ^(.*?)/(.*?)/?$ to controllers/$1.php?action=$2. This worked for me on an Apache server earlier. After that, I want to route that file to ...
0
votes
1answer
191 views

Deploying concrete5 on nginx

I have a concrete5 site that works 'out of the box' in apache server. However I am having a lot of trouble running it in nginx. The following is the nginx configuration i am using: server { root ...
1
vote
4answers
607 views

nginx rewrite rules for lithium php framework

I have been trying to get lithium running with Nginx with no success. The directory structure of lithium is like this lithium |-> app libraries .htaccess |-> webroot .htacess --other ...
0
votes
1answer
375 views

nginx rewrite with php-fpm

I have debian server with nginx + php-fpm on board. nginx version: nginx/1.0.15 PHP 5.3.10-1~dotdeb.1 with Suhosin-Patch (cli) (built: Feb 3 2012 00:21:57) Copyright (c) 1997-2012 The PHP Group ...
2
votes
4answers
2k views

How to avoid index.php in Zend Framework route using Nginx rewrite

I am trying to get rid of index.php from the default Zend Framework route. I think it should be corrected at the server level and not on the application. (Correct me if I am wrong, but I think doing ...
2
votes
2answers
730 views

nginx rewrite config

I'm pretty new to nginx and am trying to setup some pretty simple rewrite rules, but they don't seem to be working. Just for your info, this server { .. } has its server_name domain.com *.domain.com. ...
8
votes
4answers
11k views

nginx + PHP-FPM = “permission denied” error 13 in nginx log; configuration mistake?

I've got nginx 0.7x + PHP-FPM running under PHP 5.2.10 on one RHEL5 server, but trying to duplicate that setup under the bundled-in PHP-FPM in PHP 5.3.3 on a second server, I'm having some trouble ...