PDA

Visualizza la versione completa : [Debian] Apache2 & SSL


SkOrPiOn`87
10-02-2006, 13:04
Salve,

ho installato https, questa č la configurazione:



<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem

ServerAdmin admin@dominio.org
ServerName server.dominio.org

ErrorLog /var/log/apache2/error_ssl.log
LogLevel warn
CustomLog /var/log/apache2/access_ssl.log combined
ServerSignature On
DocumentRoot /var/www/apache2-default

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/apache2-default>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-local/ /var/www/apache2-default/cgi-bin/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory "/var/www/apache2-default/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

Alias /icons/ "/usr/share/apache2/icons/"
Alias /manual/ "/usr/share/doc/apache2-doc/manual/"
Include /etc/squirrelmail/apache.conf

<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>



# a2ensite sslweb
# /etc/init.d/apache2 restart

E fino qua tutto bene.. https://IP trova tutti i file contenuti della virtualhost...

Soltanto adesos quando faccio http://IP https://IP/dir ecc... ovvero tutti gli indirizzi che prima andavano ho questo errore:

Not Found

The requested URL / was not found on this server.

Non mi trova pių i file quando uso http normale...


Qualcuno sa aiutarmi? (prima di attivare ssl funzionava tutto) :ciauz:

SkOrPiOn`87
13-02-2006, 12:15
:messner:

Loading