hey guys i added the following lines to my config
location /mcv {
rewrite ^(.*)$ /public/index.php?uri=$1 last; break;
}
now i keep getting the error 'No input file specified.' when in directory /mcv whcih i believe has something to do with php from what i read...after trying suggestions on articles i found i'm now stuck.
funny thing is i don't get that error anywhere else and php script work in all other dirs other than /mcv
here is my config if someone can please help to me why php isn't working
----------------------------
events {
worker_connections 1024;
}
http {
keepalive_timeout 300;
proxy_read_timeout 300;
proxy_connect_timeout 300;
include mime.types;
server {
listen 80;
server_name 192.168.1.64;
client_max_body_size 500M;
charset utf-8;
index index.html index.htm index.php;
root r:/www;
error_log logs/error.log;
location / {
autoindex on;
}
location /mcv {
rewrite ^(.*)$ /public/index.php?uri=$1 last; break;
}
location :3000 {
proxy_pass http://192.168.1.64:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_redirect off;
proxy_buffers 8 32k;
proxy_buffer_size 64k;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
}
location = /favicon.ico {
log_not_found off;
}
location ~* \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass 192.168.1.64:9000;
}
location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}
}
}
--------------------------------
thank you
location /mcv {
rewrite ^(.*)$ /public/index.php?uri=$1 last; break;
}
now i keep getting the error 'No input file specified.' when in directory /mcv whcih i believe has something to do with php from what i read...after trying suggestions on articles i found i'm now stuck.
funny thing is i don't get that error anywhere else and php script work in all other dirs other than /mcv
here is my config if someone can please help to me why php isn't working
----------------------------
events {
worker_connections 1024;
}
http {
keepalive_timeout 300;
proxy_read_timeout 300;
proxy_connect_timeout 300;
include mime.types;
server {
listen 80;
server_name 192.168.1.64;
client_max_body_size 500M;
charset utf-8;
index index.html index.htm index.php;
root r:/www;
error_log logs/error.log;
location / {
autoindex on;
}
location /mcv {
rewrite ^(.*)$ /public/index.php?uri=$1 last; break;
}
location :3000 {
proxy_pass http://192.168.1.64:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_redirect off;
proxy_buffers 8 32k;
proxy_buffer_size 64k;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
}
location = /favicon.ico {
log_not_found off;
}
location ~* \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass 192.168.1.64:9000;
}
location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}
}
}
--------------------------------
thank you