Hello.
Is it possible to configure like the example below ? Same config for 80 and 443 ports and special config for 443 port. I'd like to run both port 80 and 443 and have the 443 site 'inherit' all the basics from the 80 site.
NameVirtualHost *:443
NameVirtualHost *:80
<virtualhost *:80>
ServerName mydom
DocumentRoot /var/www/
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</virtualhost>
<virtualhost *:443>
(somehow use the port 80 setting?)
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
(other SSL params)
</virtualhost>
Thanks!
-jouell
Is it possible to configure like the example below ? Same config for 80 and 443 ports and special config for 443 port. I'd like to run both port 80 and 443 and have the 443 site 'inherit' all the basics from the 80 site.
NameVirtualHost *:443
NameVirtualHost *:80
<virtualhost *:80>
ServerName mydom
DocumentRoot /var/www/
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</virtualhost>
<virtualhost *:443>
(somehow use the port 80 setting?)
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
(other SSL params)
</virtualhost>
Thanks!
-jouell