httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Pielmeier <ste...@symlinux.com>
Subject Re: [users@httpd] Virtual Hosts Possible for SSL ?
Date Sat, 05 Oct 2013 19:34:41 GMT
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 root@domain1.com
    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 root@domain1.com
    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:stefan@symlinux.com





On 5 Oct 2013, at 21:28, Eric Covener <covener@gmail.com> wrote:

> On Sat, Oct 5, 2013 at 3:22 PM, John McIntyre <joh98.mac@gmail.com> 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
> covener@gmail.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


Mime
View raw message