Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Maintenant nous allons créer le fichier phpmyadmin.conf pour un accès en uri :
- éditez le fichier rutorrent.conf :
- [code]nano /etc/nginx/sites-enabled/rutorrent.conf[/code]
- et ajoutez entre :
- [code]server {...
- }[/code]
- ceci :
- [code] location ^~ /phpmyadmin {
- root /var/www;
- 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; }
- [/code]
- 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