Bonjour à tous et à toutes!
Alors voilà, je viens vers vous pour trouver une solution à mon problème. Il s'agit d'un souci sur la configuration de default et default-ssl d'apache car à l'heure actuelle, ça fonctionne bizarrement chez moi....
Je m'explique, lorsque j'accède à rutorrent via l'adresse http://<server name>/rutorrent, j'ai bien la demande de mot de passe du serveur apache et ensuite l'accès à rutorrent. Ça, c'est ok. En revanche lorsque j'essaye d'accéder à la version https, là ça devient problématique.
1) La page est logiquement chiffrée puisque https, seulement je dois avoir un problème sur le certificat car je dois ajouter une exception pour pouvoir accéder à la page rutorrent. (Une fois sur ladite page, je ne suis pas sûr d'avoir la connexion chiffrée du coup?)
2) Mettons le problème de chiffrement de côté, une fois l'exception faite j'accède bien à rutorrent sauf que la, il me demande plus de mot de passe serveur comme pour la version non chiffrée.... Je ne comprends pas pourquoi.???
L'idéal au final serait de n'avoir que la connexion en https avec le mot de passe serveur pour l'accès à rutorrent.
Voici les 2 fichiers en question :
/etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Location /rutorrent>
AuthType Digest
AuthName "Identification"
AuthDigestDomain /var/www/rutorrent/ http://<server name>/rutorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/passwords
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
SCGIMount /RPC2 127.0.0.1:5000
<location /RPC2>
AuthType Basic
AuthName "rTorrent secure access"
AuthBasicProvider file
AuthUserFile /home/stuffy/Documents/rtorrent-htpasswd
Require user stuffy
</location>
</VirtualHost>
/etc/apache2/sites-available/default-ssl
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Location /rutorrent>
AuthType Digest
AuthName "Identification"
AuthDigestDomain /var/www/rutorrent/ https://<server name>/rutorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/passwords
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>
SCGIMount /RPC2 127.0.0.1:5000
<location /RPC2>
AuthType Basic
AuthName "rTorrent secure access"
AuthBasicProvider file
AuthUserFile /home/stuffy/Documents/rtorrent-htpasswd
Require user stuffy
</location>
</VirtualHost>
</IfModule>
En espérant que quelqu'un puisse m'éclairer, bonne soirée!