5 messages in ru.sysoev.nginxRe: Problem configuring nginx
FromSent OnAttachments
Ian HobsonJan 19, 2009 5:39 am 
Igor SysoevJan 19, 2009 5:58 am 
Ian HobsonJan 19, 2009 2:29 pm 
Ian HobsonJan 19, 2009 2:33 pm 
Ian HobsonJan 19, 2009 2:40 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Problem configuring nginxActions...
From:Ian Hobson (ia@ianhobson.co.uk)
Date:Jan 19, 2009 2:33:43 pm
List:ru.sysoev.nginx

Igor Sysoev wrote:

On Mon, Jan 19, 2009 at 01:39:58PM +0000, Ian Hobson wrote:

server { listen 80; server_name emc.titan.hcs; # testing only root /home/ianwebsites/emccatering # where .htm files are location ~ \.htm$ { # source files rewrite ^(.*\.htm)$ /builder/parser.php?f=$1; fastcgi_param SCRIPT_FILENAME /home/ian/websites/builder/parser.php?f=$fastcgi_script_name;

- rewrite ^(.*\.htm)$ /builder/parser.php?f=$1; - fastcgi_param SCRIPT_FILENAME
/home/ian/websites/builder/parser.php?f=$fastcgi_script_name;

+ fastcgi_pass 127.0.0.9000; + fastcgi_param SCRIPT_FILENAME /home/ian/websites/builder/parser.php; + fastcgi_param QUERY_STRING f=$uri;

Correction fastcgi_param QUERY_STRING f=$request_uri;

+ fastcgi_param DOCUMENT_ROOT $document_root;

Thanks Igor,

The site is now working. :)

Regards

Ian