Bonjour,
Voulant tester
Tiny issue, je l'ai installé sur mon serveur possédant comme serveur web Nginx.
Le problème est que l'url rewriting de celui-ci est prévu pour Apache et non Nginx.
Voici la configuration que j'ai mis pour Tiny issue dans nginx :
Code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| server {
listen 80;
server_name bug.*****.com;
access_log /var/log/nginx/localhost.access.log;
location / {
root /home/plt/bugtracker;
index index.php index.html;
}
location ~* \.(jpg|jpeg|gif|css|png|ico|xml|js)$ {
log_not_found off;
access_log off;
expires 1y;
root /home/plt/bugtracker;
}
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/plt/bugtracker/$fastcgi_script_name;
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
location ~ /\.ht {
deny all;
}
} |
J'ai essayé de refaire les règles avec des convertisseurs tel que
http://winginx.com/htaccess , mais cela ne fonctionne pas.
Soit j'obtiens une erreur 404, soit une erreur 500 en modifiant un peu.
Voici le .htaccess de Tiny issue :
Code :
1 2 3 4 5 6 7 8
| <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule> |
Voici ce que j'ai testé :
Code :
1 2 3 4 5 6 7
| location / {
root /home/plt/bugtracker;
index index.php index.html;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php/$1 break;
}
} |
Code :
1 2 3 4 5 6 7
| location / {
root /home/plt/bugtracker;
index index.php index.html;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php/$1 last;
}
} |
Si quelqu'un connait le soucis, je le remercie d'avance