Bonjour,
Je sais que ce sujet a deja été posté plusieurs fois m'ai je n'ai pas trouvé de réponse à mon probléme.
Je posséde donc un serveur sur Debian 7
J'ai installer dessus une seedbox en suivant le tuto de MAgicalex
puis Cakebox
puis Seedbox manager
J'aimerais maintenant installer mysql+phpmyadmin
Je suis donc le trés bon tuto de corentin. :
http://mondedie.fr/d/5738
Naturellement je bloque à l'étape "Accès à Phpmyadmin en sous-domaine"
Je vous met mes les fichiers de configuration qui me semble poser probléme
rutorrent.conf :
server {
listen 80 default_server;
listen 443 default_server ssl;
server_name _;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
location /THIBAUT {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_thibaut";
}
## fin config rutorrent ##
## debut config cakebox-light ##
location /cakebox/ {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
location /cakebox/thibaut/ {
alias /home/thibaut/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## fin config cakebox-light ##
## début config seedbox-manager ##
location ^~ / {
root /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
## fin config seedbox-manager ##
##Config phpmyadmin##
location ^~ /phpmyadmin {
root /var/www/phpmyadmin;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
##Fin de config phpmydmin
}
et phpmyadmin.conf
server {
listen 80;
server_name _;
root /var/www/phpmyadmin;
index index.html index.php;
allow 127.0.0.1; # only the proxy
deny all;
charset utf-8;
include /etc/nginx/conf.d/cache;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
location ^~ /phpmyadmin {
root /var/www/phpmyadmin;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
}
Quand je vais à l'adresse de mon serveur xxxxx/phpmyadmin j'ai une erreur 404.
Je sais que je me plante quelque part dans la redirection mais ou ?
Merci d'avance !!!!