Ainsi, c'était bien ça ^^. C'est en effet bizarre...
C'est exact. Un fichier .htaccess ne fonctionnera pas, Nginx n'a pas était conçu pour.
C'est exact. Un fichier .htaccess ne fonctionnera pas, Nginx n'a pas était conçu pour.
# Url Rewriting
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([_a-z0-9]*).html$ template.php?url=$1 [L]
website.conf
location / {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache; $
rewrite ^/([_a-z0-9]*).html$ /template.php?url=$1
break;
}
<?php
header('Content-Type: text/html;charset=ISO-8859-1');
?>
Cela va resoudre ton problémeserver {
listen 80;
server_name cakebox.mondomaine.fr; ## sous domaine obligatoire // j'ai modifié mondomaine par le vrai [img]/assets/images/smileys/wink.png[/img]
root /var/www/cakebox/public;
index index.php;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
charset utf-8;
include /etc/nginx/conf.d/cache;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
location = / {
try_files @site @site;
}
location / {
try_files $uri $uri/ @site;
}
location /sqdz/ {
alias /home/sqdz/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param APPLICATION_ENV production;
## uncomment when running via https
## fastcgi_param HTTPS on;
}
}
Une idée ?2014/05/17 14:23:14 [crit] 1040#0: *768 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET / HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr"
2014/05/17 14:23:14 [crit] 1040#0: *768 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET /favicon.ico HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr"
2014/05/17 14:23:14 [crit] 1040#0: *768 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET /favicon.ico HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr"
2014/05/17 15:44:54 [crit] 5763#0: *8 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET / HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr"
2014/05/17 15:44:57 [crit] 5763#0: *8 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET / HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr"
2014/05/17 15:44:57 [crit] 5763#0: *8 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET / HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr"
2014/05/17 15:47:23 [crit] 5766#0: *90 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET / HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr", referrer: "http://rutorrent.mondomaine.fr/"
2014/05/17 15:55:03 [crit] 5766#0: *545 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upcakebox, client: 82.236.180.50, server: cakebox.mondomaine.fr, request: "GET / HTTP/1.1", upcakebox: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cakebox.mondomaine.fr", referrer: "http://rutorrent.mondomaine.fr/"