Ok, I had similar problems. When seeing your original config, it triggers
following comments (after ##$) from me:
NameVirtualHost *:80 ##$ fine
<VirtualHost domain1.com:80> ##$ <<---- you need *:80 here !
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName domain1.com
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access.log combined
Redirect permanent / https://domain1.com/
</VirtualHost>
<VirtualHost domain1.com:443> ##$ fine
SSLEngine On
SSLCertificateFile /etc/httpd/ssl/httpd.pem
SSLCertificateKeyFile /etc/httpd/ssl/httpd.key
ServerAdmin [email protected]
ServerName domain1.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access.log combined
</VirtualHost>
<VirtualHost *:80> ##$ that is fine
ServerName domain2.com
ServerAlias domain2.com *.domain2.com
DocumentRoot /var/www/html/domain2
</VirtualHost>
Stefan Pielmeier
email:[email protected]
On 5 Oct 2013, at 21:28, Eric Covener <[email protected]> wrote:
> On Sat, Oct 5, 2013 at 3:22 PM, John McIntyre <[email protected]> wrote:
>>
>> Okay, if you're not doing ssl on domain2 then, no, that's not related. I
>> thought maybe from the post title that you were asking about virtual hosts
>> for ssl and that gets complicated depending on exactly what you're trying to
>> do.
>>
>>
>> Guys, coming back at you with this, as I still can't get it to work. Does
>> anyone have any ideas?
>
> It would help if you included your configuration, apachectl -S output,
> and the test request/expectations/results each time something changes.
>
>
> --
> Eric Covener
> [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>