Re: Convert Apache rewrite to NGinx

2013-03-06 Thread GASPARD Kévin
Hi, On Sun, Mar 03, 2013 at 07:38:39PM +0100, GASPARD kévin wrote: Hi there, >Probably a single extra try_files line will work for you. This is my new config file : location ~ \.php$ { try_files $uri $uri/ /index.php?q=$uri&$args; } Y

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread GASPARD kévin
Le Sun, 03 Mar 2013 19:59:17 +0100, Steve Holdoway a écrit: Why not just use the wp config examples in the docs? Both Wordpress and nginx offer them. Well, I forget to check that... Sorry. Anyway, I've found this: Steve On 4/03/2013, at 7:38 AM, GASPARD kévin wrote: Thank

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread GASPARD kévin
Thanks for your reply. On Sun, Mar 03, 2013 at 01:52:48PM +0100, GASPARD kévin wrote: Hi there, Using nginx 1.2.1 on Debian Wheezy 64 bits. My wordpress need rewrite, it gave me this: # nginx configuration location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php

Convert Apache rewrite to NGinx

2013-03-03 Thread GASPARD kévin
Hi, Using nginx 1.2.1 on Debian Wheezy 64 bits. My wordpress need rewrite, it gave me this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] I've tried to convert it with this

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-03-03 Thread GASPARD kévin
Hi, I've solved my issue, I've moved all wordpress file into the document root of blog.koshie.fr, modified it into /etc/nginx/conf.d/blog.koshie.fr.conf according to my new structure and now it works. Again thanks :). Le Sat, 02 Mar 2013 20:14:55 +0100, GASPARD kévin a écri

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-03-02 Thread GASPARD kévin
ittle and some peoples talk about /etc/nginx/fastcgi_params's SCRIPT_FILE_NAME parameters. But I don't understand what value to put into. PS : Sorry for the noise of my last e-mail. Cordially, Koshie Le Sat, 02 Mar 2013 20:00:47 +0100, GASPARD kévin a écrit: I've rem

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-03-02 Thread GASPARD kévin
I've removed all "127.0.0.1:9000" lines by "fastcgi_pass unix:/var/run/php5-fpm.sock;" and everything works now :-). Thanks for your help ! Le Thu, 21 Feb 2013 14:50:41 +0100, Francis Daly a écrit: On Thu, Feb 21, 2013 at 10:26:22AM +0100, GASPARD Kévin wrote:

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Le Thu, 21 Feb 2013 13:46:35 +0100, Mark Alan a écrit: On Thu, 21 Feb 2013 12:07:41 +0100, GASPARD Kévin wrote: To be honest I don' know. When I've setup this configuration (more than 1 year ago I think) It seems that you are trying to force a non Debian directory structure int

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Le Thu, 21 Feb 2013 11:26:57 +0100, Wolfsrudel a écrit: Can you please do a `grep 'fastcgi_pass ' /etc/nginx/*/*` and post the output? Maybe there are other configuration files with a fefault 'fastcgi_pass' which overwrites your vhost. With a sudo grep -R 'fastcgi_pass ' /etc/nginx/*/* I ha

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Le Thu, 21 Feb 2013 11:17:21 +0100, Wolfsrudel a écrit: Dump question, but why did you put the vhost-files into "conf.d"? Normally they are stored in "sites-available" and symlinked in "sites-enabled". nginx (as apache) uses this directory to read all information about the vhosts. Are the

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-21 Thread GASPARD Kévin
Hi there, >Looking at your config file, plus every file include'd in it, can you >see which one server{} block is used for this request? (You'll need >to look at all of the "listen" directives first, and then all of the >"server_name" directives in the server{}s with the "listen" that best >ma

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread GASPARD Kévin
>The nginx config you showed is not the one that the running nginx is >using when it created this log file. I've pasted a working vhost configuration file and pasted an error on an other configuration file but they are identical except for document root and domain. To create this file I've used '

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread GASPARD Kévin
On Wed, Feb 20, 2013 at 11:27:04PM +0100, GASPARD Kévin wrote: Hi there, I'm using Nginx 1.2.1 on Debian Wheezy 64 bits, I want to host some personals website on my dedicated server. I've installed php5-fpm, looked at the configuration file which is /etc/php5/fpm/pool.d/www.co

502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread GASPARD Kévin
Hello, First, I'm new to this Mailing List. As say my signature I'm non-English and I'm trying the best to be understandable. If something isn't clear or noisy, please tell me. I'm using Nginx 1.2.1 on Debian Wheezy 64 bits, I want to host some personals website on my dedicated server. I'