Salve, sto cercando di impostare il server apache in modo che le connessioni provenienti dall'esterno siano di tipo HTTPS mentre quelle dalla stessa LAN siano normali HTTP sulla porta 80.
Sul router ho impostato solo il portforwarding della 443 e il mio ports.conf è
su site-aviable invece ho aggiunto il virtual host *:443 oltre al già presente virtual host*:80 aggiungendo dopo Document Rootcodice:NameVirtualHost *:80 Listen 80 NameVirtualHost *:443 <IfModule mod_ssl.c> # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to <VirtualHost *:443> # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP. Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule>
Ovviamente dopo aver generato i certificati.codice:SSLEngine on SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire SSLCertificateFile /etc/ssl/certs/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key
Purtroppo funziona solo tramite la porta 80 all'interno della rete. Dove sbaglio?
Grazie!!

Rispondi quotando