Problem configuring nginx

Ian Hobson ian at ianhobson.co.uk
Tue Jan 20 01:29:45 MSK 2009


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





More information about the nginx mailing list