Welcome! Log In Create A New Profile

Advanced

Include don't Loading have Variables Path

Nginx fans
December 30, 2009 03:00AM
server {
listen 80;
server_name localhost;

charset utf-8;

location / {
set $web_root d:/website/wordpress;
root $web_root;
index index.html index.htm index.php;
}

error_page 404 /404.html;

redirect server error pages to the static page /50x.html

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root $web_root;
}

location ~ \.php$ {
root $web_root;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
$web_root$fastcgi_script_name;
include fastcgi_params;
}

include $web_root/.htaccess;

}


###
include $web_root/.htaccess; This is load Rewrite Rule for nginx
But Nginx don't load why?

[emerg]: CreateFile() "D:\nginx/conf/$web_root\.htaccess" failed (3: The
system cannot find the path specified) in D:\nginx/conf/nginx.conf:42


How should I do? How do NGINX make it support.
please thanks.
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Include don't Loading have Variables Path

Nginx fans December 30, 2009 03:00AM

Re: Include don't Loading have Variables Path

Maxim Dounin December 30, 2009 05:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready