Re: Virtual Hosts Possible for SSL ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
    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@xxxxxxxxxxx
    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@xxxxxxxxx> wrote:

On Sat, Oct 5, 2013 at 3:22 PM, John McIntyre <joh98.mac@xxxxxxxxx> 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@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux