Hello. I have strange problem with aliases and php in it.
I try zylion examples but anyone work for me ;/
Now i have that config:
user nobody;
worker_processes 1;
error_log /var/log/nginx/error.log debug;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
keepalive_timeout 65;
gzip on;
server_tokens off;
server {
listen 192.168.34.11:80;
server_name mydomain.net www.mydomain.net;
access_log /home/i-pi.pl/logs/access.log main;
error_log /home/i-pi.pl/logs/error_log error;
client_max_body_size 20m;
client_body_buffer_size 128k;
index index.html index.htm index.php;
root /home/i-pi.pl/data;
# Let nginx know how to handle PHP using fastcgi
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
root html;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
location /siqu/ {
alias /home/i-pi.pl/addson/siqu;
autoindex on;
}
}
}
And when i try to run
http://192.168.34.11
http://192.168.34.11/siqu/
http://192.168.34.11/siqu/index.php
I Get File Not Found or 404 Error.
Only one thing works
http://192.168.34.11/siqu/test.html show me what is inside file.
For test i chmod all dirs to 777.
Please help, i need to run couple apps in different aliases and i can't ;/
Thanks, Adrian.