Portál AbcLinuxu, 10. května 2025 11:21
Řešení dotazu:
a2enmod ssl
, a pak pripadne pouzit vychozi SSL stranku: a2ensite default-ssl
<VirtualHost *:443> ServerName secure.xxxxx.eu DocumentRoot /home/xxxxx/ # ErrorLog /var/log/apache2/error.log # CustomLog /var/log/apache2/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/xxxxx.eu.pem <Directory /home/xxxxx-ssl/> Options FollowSymLinks AllowOverride None </Directory> php_admin_value open_basedir "/home/xxxxx:/tmp" </VirtualHost>zase tá ista chyba # /etc/init.d/apache2 restart Restarting web server: apache2[Fri Jan 21 15:49:59 2011] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results Môžete mi prosím poradiť?
<IfModule mod_ssl.c> <VirtualHost ssl.domain.tld:443> ServerName ssl.domain.tld DocumentRoot /srv/www/ssl/ <Directory "/srv/www/ssl/"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/ssl-error.log LogLevel warn CustomLog /var/log/apache2/ssl-access.log combined SSLEngine on SSLCertificateFile /etc/ssl/private/ssl-custom.crt </VirtualHost> </IfModule>ports.conf:
NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule>Na zaver jeste muzu doporucit zkontrolovat, jak se menila syntaxe konfigurace apache 2.x oproti 1.3, mozna ze mas jeste stare neaktualizovane konfiguracni soubory.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.