Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
; Paths and Directories
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
doc_root = "/var/blog"
user_dir =
extension_dir = "/usr/lib/php"
enable_dl = On
cgi.force_redirect = 1
;cgi.nph = 1
cgi.redirect_status_env = "yes";
cgi.fix_pathinfo=1
;fastcgi.impersonate = 1;
;fastcgi.logging = 0
;cgi.rfc2616_headers = 0
user nobody nogroup;
worker_processes 1;
error_log /tmp/nginx/error.log error;
#error_log tmp/nginx/error_notice.log notice;
#error_log tmp/nginx/error.log info;
#pid logs/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"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 89;
server_name *.kamenitxan.eu;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /tmp/blog;
index index.php index.html index.htm;
}
#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 html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:1026;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
}
nginx: mám stejně jak ty, až na cestu ke stránkám k souborům, to mám /usr/share/www/joomla server { listen 80; server_name www.jancarik.eu; #charset koi8-r; #access_log logs/host.access.log main; location / { root /usr/share/www/joomla; index index.php; } php.ini: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" doc_root = "/usr/share/www/joomla" user_dir = extension_dir = "/usr/lib/php" enable_dl = On cgi.force_redirect = 1 ;cgi.nph = 1 cgi.redirect_status_env = "yes" ; cgi.fix_pathinfo=1 ;fastcgi.impersonate = 1; ;fastcgi.logging = 0 ;cgi.rfc2616_headers = 0 log z nginxu 2014/04/30 09:08:06 [error] 9128#0: *1 open() "/usr/html/index.php" failed (2: No such file or directory), client: 2014/04/30 09:08:11 [error] 9128#0: *1 open() "/usr/html/php/index.php" failed (2: No such file or directory), client:
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill