Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Maintenant nous allons créer le fichier phpmyadmin.conf pour un accès en uri :
  2.  
  3. éditez le fichier rutorrent.conf :
  4.  
  5. [code]nano /etc/nginx/sites-enabled/rutorrent.conf[/code]
  6.  
  7. et ajoutez entre :
  8.  
  9. [code]server {...
  10. }[/code]
  11.  
  12. ceci :
  13.  
  14. [code] location ^~ /phpmyadmin {
  15.  
  16. root /var/www;
  17. include /etc/nginx/conf.d/php;
  18. include /etc/nginx/conf.d/cache;
  19.  
  20. index index.php index.html index.htm;
  21. location ~ ^/phpmyadmin/(.+\.php)$ {
  22. try_files $uri =404;
  23. root /usr/share/;
  24. fastcgi_pass unix:/var/run/php5-fpm.sock;
  25. fastcgi_index index.php;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. include /etc/nginx/fastcgi_params;
  28. }
  29. location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  30. root /usr/share/;
  31. }
  32. }
  33. location /phpMyAdmin {
  34. rewrite ^/* /phpmyadmin last; }
  35.  
  36.  
  37. [/code]
  38.  
  39. Vous pouvez maintenant accèder à la page de PhpMyAdmin via [url]http://ip/phpmyadmin/[/url] ou [url]http://mondomaine.fr/phpmyadmin/[/url]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement