Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 275AE200B44 for ; Thu, 14 Jul 2016 15:42:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 263D7160A85; Thu, 14 Jul 2016 13:42:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 56DC7160A60 for ; Thu, 14 Jul 2016 15:42:23 +0200 (CEST) Received: (qmail 47461 invoked by uid 500); 14 Jul 2016 13:42:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 47452 invoked by uid 99); 14 Jul 2016 13:42:17 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 13:42:17 +0000 Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A467E1A0250 for ; Thu, 14 Jul 2016 13:42:16 +0000 (UTC) Received: by mail-it0-f53.google.com with SMTP id f6so3623792ith.0 for ; Thu, 14 Jul 2016 06:42:16 -0700 (PDT) X-Gm-Message-State: ALyK8tJZrWNjDIZwCUHVCQlGCJ5j3kDKDp72yAN7rmXPWLZDMzg8Eq5Q1syk6R3TPL4RQhj2WaDbyxltMfaCAQ== X-Received: by 10.36.73.70 with SMTP id z67mr29283222ita.33.1468503736026; Thu, 14 Jul 2016 06:42:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.170.203 with HTTP; Thu, 14 Jul 2016 06:42:15 -0700 (PDT) In-Reply-To: References: From: Frank Gingras Date: Thu, 14 Jul 2016 09:42:15 -0400 X-Gmail-Original-Message-ID: Message-ID: To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=001a113a7ee88990af053798abfe Subject: Re: [users@httpd] Virtual Host - Port 80 to 443 archived-at: Thu, 14 Jul 2016 13:42:25 -0000 --001a113a7ee88990af053798abfe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No, you missed the trailing slash: Redirect permanent / https://subdomain.domain.ac.za/ On Thu, Jul 14, 2016 at 6:19 AM, Daniel wrote: > > ---------- Forwarded message ---------- > From: Daniel > Date: 2016-07-14 12:18 GMT+02:00 > Subject: Re: [users@httpd] Virtual Host - Port 80 to 443 > To: Leon Vergottini > > > It seems correct. > > If you have several virtualhosts for different subdomains you should > define them on the same fashion as what you just showed.. If this is Apac= he > 2.2.x and you have several virtualhosts not just 1 for 80 and 1 for 443, > you should have NameVirtualHost *:80 and NameVirtualHost *:443 (if you ar= e > certainly using VirtualHost *:port in all cases. > > It really depends on what you want to do, but premise are: > * VirtualHost should always have a port in it along with * or ip > * Each virtualhost should have a servername specifying which host name it > is supposed to serve. > * To redirect to SSL a Redirect is enough in the non-SSL virtualhost. (no > need for mod_rewrite). > * 2.2.x requires namevirtualhost directive in order to not deliver all > requests to first virtualhost that matches the ip:port combination. > > 2016-07-14 12:11 GMT+02:00 Leon Vergottini : > >> Dear Daniel >> >> >> >> Thank you for the quick the reply. It is much appreciated. >> >> >> >> If I understand you correctly, then the example below should be correct >> and will work for all the subdomains as well. >> >> >> >> >> >> ServerName subdomain1.domain.ac.za >> >> >> >> Redirect permanent / https://subdomain.domain.ac.za >> >> >> >> >> >> >> >> >> >> ServerName subdomain1.domain.ac.za >> >> >> >> SSLEngine On >> >> SSLCertificateKeyFile /etc/pki/tls/certs/cnrstone/xxxxxxxxx.key >> >> SSLCertificateFile /etc/pki/tls/certs/cnrstone/ xxxxxxxxx.crt >> >> >> >> DocumentRoot "/var/www/subdomain.domain.ac.za/public_html" >> >> >> >> Options Indexes FollowSymLinks MultiViews >> >> # AllowOverride controls what directives may be placed in >> .htaccess files. >> >> AllowOverride All >> >> # Controls who can get stuff from this server file >> >> Order allow,deny >> >> Allow from all >> >> >> >> >> >> ServerEnvironment apache apache >> >> >> >> >> >> >> >> Kind Regards >> >> Leon >> >> >> >> *From: *Daniel >> *Reply-To: * >> *Date: *Thursday, 14 July 2016 at 11:40 AM >> *To: *"" >> *Subject: *Re: [users@httpd] Virtual Host - Port 80 to 443 >> >> >> >> is totally invalid. Use *:80 or *:443 or ip:port but >> never "*" alone. >> >> >> >> Also if you define *:80 and there you want to redirect to the SSL >> virtualhost by all means use the http scheme in the redirect directive l= ike: >> >> Redirect permanent / https://subdomain.domain.ac.za/ >> >> >> >> 2016-07-14 11:31 GMT+02:00 Leon Vergottini : >> >> Dear Community >> >> >> >> I hope you are doing well today. >> >> >> >> May I kindly ask your assistance since HTTPD is not my strong point? I >> have several virtual host conf files that have the structure below. I a= m >> now trying to change them so that incoming visitors from port 80 are bei= ng >> redirected to port 443: >> >> >> >> >> >> >> >> ServerName subdomain.domain.ac.za >> >> DocumentRoot "/var/www/ subdomain.domain.ac.za/public_html" >> >> > subdomain.domain.ac.za/public_html"> >> >> Options Indexes FollowSymLinks MultiViews >> >> # AllowOverride controls what directives may be placed in >> .htaccess files. >> >> AllowOverride All >> >> # Controls who can get stuff from this server file >> >> Order allow,deny >> >> Allow from all >> >> >> >> >> >> ServerEnvironment apache apache >> >> >> >> >> >> >> >> If a change it to this structure below to redirect the traffic from >> port 80 to 443, I am getting the error message that connection is not >> private and if I continue I am getting the default Apache page instead o= f >> the intended site=E2=80=99s home page. >> >> >> >> >> >> ServerName subdomain.domain,ac,za >> >> >> >> SSLEngine On >> >> SSLCertificateKeyFile /etc/pki/tls/certs/cnrstone/xxxxxx.key >> >> SSLCertificateFile /etc/pki/tls/certs/cnrstone/ xxxxxx.crt >> >> >> >> RewriteEngine On >> >> RewriteCond %{HTTPS} off >> >> RewriteRule (.*) https://%{SERVER_NAME} [R,L] >> >> >> >> DocumentRoot "/var/www/ subdomain.domain.ac.za/public_html" >> >> > subdomain.domain.ac.za/public_html"> >> >> Options Indexes FollowSymLinks MultiViews >> >> # AllowOverride controls what directives may be placed in >> .htaccess files. >> >> AllowOverride All >> >> # Controls who can get stuff from this server file >> >> Order allow,deny >> >> Allow from all >> >> >> >> >> >> ServerEnvironment apache apache >> >> >> >> >> >> >> >> If I change it to this structure below, the page is presented when >> using the url https://subdomain.domain.ac.za/ but not >> http://subdomain.domain.ac.za/ >> >> >> >> >> >> ServerName subdomain.domain.ac.za >> >> >> >> SSLEngine On >> >> SSLCertificateKeyFile /etc/pki/tls/certs/cnrstone/ xxxxxx.ke= y >> >> SSLCertificateFile /etc/pki/tls/certs/cnrstone/ xxxxxx.crt >> >> >> >> DocumentRoot "/var/www/ subdomain.domain.ac.za/public_html" >> >> > subdomain.domain.ac.za/public_html"> >> >> Options Indexes FollowSymLinks MultiViews >> >> # AllowOverride controls what directives may be placed in >> .htaccess files. >> >> AllowOverride All >> >> # Controls who can get stuff from this server file >> >> Order allow,deny >> >> Allow from all >> >> >> >> >> >> ServerEnvironment apache apache >> >> >> >> >> >> >> >> Last virhost structure that I tried is similar to the one below. When >> applying these changes to other virtual hosts files, I am not re-directe= d >> to the right site, i.e. url https://subdomain1.domain.ac.za gets >> redirected to https://subdomain.domain.ac.za. >> >> >> >> >> >> ServerName subdomain.domain.ac.za >> >> DocumentRoot "/var/www/subdomain.cornerstone.ac.za/public_html" >> >> Redirect permanent / subdomain.domain.ac.za >> >> >> >> >> >> >> >> ServerName subdomain.domain.ac.za >> >> >> >> SSLEngine On >> >> SSLCertificateKeyFile /etc/pki/tls/certs/cnrstone/ xxxxxx.ke= y >> >> SSLCertificateFile /etc/pki/tls/certs/cnrstone/ xxxxxx.crt >> >> >> >> DocumentRoot "/var/www/subdomain.domain.ac.za/public_html" >> >> > subdomain.domain.ac.za/public_html"> >> >> Options Indexes FollowSymLinks MultiViews >> >> # AllowOverride controls what directives may be placed in >> .htaccess files. >> >> AllowOverride All >> >> # Controls who can get stuff from this server file >> >> Order allow,deny >> >> Allow from all >> >> >> >> >> >> ServerEnvironment apache apache >> >> >> >> >> >> In addition, I have received serveral .crt files for a wild card >> certificate issues by Comodo. Do I have to include them all and how wil= l a >> go about doing so, if I have to? >> >> >> >> Thank you in advance. >> >> >> >> Kind Regards >> >> Leon >> >> >> >> >> >> -- >> >> *Daniel Ferradal* >> >> IT Specialist >> >> >> >> email dferradal at gmail.com >> >> linkedin es.linkedin.com/in/danielferradal >> > > > > -- > *Daniel Ferradal* > IT Specialist > > email dferradal at gmail.com > linkedin es.linkedin.com/in/danielferradal > > > > -- > *Daniel Ferradal* > IT Specialist > > email dferradal at gmail.com > linkedin es.linkedin.com/in/danielferradal > --001a113a7ee88990af053798abfe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
No, you missed the trailing slash:

=C2=A0Redirect permanen= t /=C2=A0https://subdomain.doma= in.ac.za/

On Thu, Jul 14, 2016 at 6:19 AM, Daniel <<= a href=3D"mailto:dferradal@gmail.com" target=3D"_blank">dferradal@gmail.com= > wrote:
<= br>
---------- Forwarded message= ----------
From: Daniel <dferradal= @gmail.com>
Date: 2016-07-14 12:18 GMT+02:00
Subject: R= e: [users@httpd] Virtual Host - Port 80 to 443
To: Leon Vergottin= i <leonv@co= rnerstone.ac.za>


It seems correct.<= /div>

If you have several virtualhosts for different subdomai= ns you should define them on the same fashion as what you just showed.. If = this is Apache 2.2.x =C2=A0and you have several virtualhosts not just 1 for= 80 and 1 for 443, you should have NameVirtualHost *:80 and NameVirtualHost= *:443 (if you are certainly using VirtualHost *:port in all cases.
It really depends on what you want to do, but premise are:
* VirtualHost should always have a port in it along with * or ip
* Each virtualhost should have a servername specifying which host nam= e it is supposed to serve.
* To redirect to SSL a Redirect is eno= ugh in the non-SSL virtualhost. (no need for mod_rewrite).
* 2.2.= x requires namevirtualhost directive in order to not deliver all requests t= o first virtualhost that matches the ip:port combination.
<= div class=3D"h5">

2016-07-14 12:11 GMT+02:00 Leon Vergottini <= leonv@cornerst= one.ac.za>:

= Dear Daniel

=C2=A0

Thank you for the quick the reply. It is much appre= ciated.

=C2=A0=

If I understand you correctly, then the example below s= hould be correct and will work for all the subdomains as well.

=C2=A0

= <VirtualHost *:80>

=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ServerName subdomain1.domain.ac.za

=C2=A0

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Redirect permanent / https://subdomain.domain.ac.= za

=C2=A0<= /p>

</VirtualHost>

=C2=A0

<VirtualHost *:443&g= t;

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 ServerName subdomain1.domain.ac.za

=C2=A0

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 SSLEngine On

= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SSLCertificateKeyFile /etc/pki/t= ls/certs/cnrstone/xxxxxxxxx.key

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SSLCertificateFile /etc/pki/tls/cer= ts/cnrstone/ xxxxxxxxx.crt

<= span lang=3D"EN-GB" style=3D"font-size:11.0pt;font-family:Calibri">= =C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 DocumentRoot "/var/www/subdomain.domain.ac.za/public_html&q= uot;

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Dire= ctory "/var/www/subdomain.domain.ac.za/public_html">

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Options Indexes FollowSymL= inks MultiViews

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # AllowOverride controls what directives = may be placed in .htaccess files.

= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AllowOverri= de All

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 # Controls who can get stuff from this server file

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 Order allow,deny

=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Allow = from all

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </Directory>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <IfModul= e mpm_peruser_module>

=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ServerEnvironment apache apache

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </IfModule><= /u>

</VirtualHost>

=

=C2=A0

Kind = Regards

Leon

=C2=A0

From: <= span style=3D"font-family:Calibri;color:black">Daniel <dferradal@gmail.com>
R= eply-To: <users@httpd.apache.org>
Date: Thursday, 14 July 2016 at = 11:40 AM
To: "<users@httpd.apache.org>" <users@httpd.apache.org><= br>Subject: Re: [users@httpd] Virtual Host - Port 80 to 443

=C2=A0

=C2=A0<VirtualHost *> is totally invalid. Use *:= 80 or *:443 or ip:port but never "*" alone.<= /p>

=C2=A0

Also if= you define *:80 and there you want to redirect to the SSL virtualhost by a= ll means use the http scheme in the redirect directive like:<= u>

Redirect permanent / https://subdomain.domain.ac.za/

<= /div>

=C2=A0

2016-07-14 11:31 GMT+02:00 Leon Vergottini <leonv@cornerstone.ac.za>:

Dear Community

=C2=A0

I hope= you are doing well today.

<= span lang=3D"EN-GB" style=3D"font-size:11.0pt">=C2=A0<= /p>

M= ay I kindly ask your assistance since HTTPD is not my strong point?=C2=A0 I= have several virtual host conf files that have the structure below.=C2=A0 = I am now trying to change them so that incoming visitors from port 80 are b= eing redirected to port 443:

=C2=A0

=C2=A0

<VirtualHost *>

<= p class=3D"MsoNormal">=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ServerName =
subdomain.domai= n.ac.za

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 DocumentRoot "/var/www/ subdomain.domain.ac.za/p= ublic_html"

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 <Directory "/var/www/subdomain.domain.ac.za/public_html&quo= t;>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Options = Indexes FollowSymLinks MultiViews

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # AllowOverride control= s what directives may be placed in .htaccess files.

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 AllowOverride All

= =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # Controls who can get stuff from t= his server file

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Order allow,deny=

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 Allow from all

=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &l= t;/Directory>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <IfModule mpm_peruser_module>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ServerEnvironment apach= e apache

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 </IfModule>

=C2=A0=C2=A0=C2= =A0 </VirtualHost>

=C2=A0=C2=A0=C2=A0 <= /u>

=C2=A0=C2=A0=C2=A0=C2=A0If a change it to this structure below to= redirect the traffic from port 80 to 443, I am getting the error message t= hat connection is not private and if I continue I am getting the default Ap= ache page instead of the intended site=E2=80=99s home page.

=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0<Vi= rtualHost *>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ServerName subdomain.domain,ac,za<= /u>

=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SSLEngine On<= u>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SS= LCertificateKeyFile /etc/pki/tls/certs/cnrstone/xxxxxx.key=

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SSLC= ertificateFile /etc/pki/tls/certs/cnrstone/ xxxxxx.crt=

= =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0RewriteEngine On

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Rewrite= Cond %{HTTPS} off

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RewriteRule (.*) https://%{SERVER_NAME} [R,L= ]

=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0DocumentRoot &q= uot;/var/www/ subdomain.domain.ac.za/public_html"

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Directory "/var/www/ subdo= main.domain.ac.za/public_html">

=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Options Indexes FollowSymLinks MultiViews

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 # AllowOverride controls what directives may be placed in .= htaccess files.

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AllowOverride All

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 # Controls who can get stuff from this server file<= /u>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 Order allow,deny

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Allow fr= om all

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </Directory>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <IfM= odule mpm_peruser_module>

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ServerEnvironment apache apache

=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </IfModule&= gt;

=C2=A0=C2=A0=C2=A0 </VirtualHost>

=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0If= I change it to this structure below, the page is presented when using the = url https://s= ubdomain.domain.ac.za/ but not http://subdomain.domain.ac.za/

=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0<Virtua= lHost *:443>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ServerName subdomain.domain.ac.za<= /p>

= =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SSLEngine On

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SSLCertific= ateKeyFile /etc/pki/tls/certs/cnrstone/ xxxxxx.key

=

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0SSLCertific= ateFile /etc/pki/tls/certs/cnrstone/ xxxxxx.crt

=C2=A0= =C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0DocumentRoot "/var/www/ subdomain.domain= .ac.za/public_html"

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 <Directory "/var/www/ subdomain.domain.ac.za/public_ht= ml">

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0Options Indexes FollowSymLinks MultiViews

=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # AllowO= verride controls what directives may be placed in .htaccess files.

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 AllowOverride All

=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # Controls who can g= et stuff from this server file

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Order all= ow,deny

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Allow from all<= /u>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 </Directory>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <IfModule mpm_peruser_modu= le>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ServerEn= vironment apache apache

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </IfModule>=

= =C2=A0=C2=A0=C2=A0 </VirtualHost>

=C2=A0

Last virhost structure that I tried is similar to the one below= .=C2=A0 When applying these changes to other virtual hosts files, I am not = re-directed to the right site, i.e.=C2=A0 url https://subdomain1.domain.ac.za gets r= edirected to h= ttps://subdomain.domain.ac.za.

=C2=A0

<VirtualHost *:80>

=C2=A0=C2=A0 ServerNam= e subdomain.dom= ain.ac.za

=C2=A0=C2=A0 DocumentRoot "/var/www/= subdomain.cornerstone.ac.za/public_html"

=C2= =A0=C2=A0 Redirect permanent / subdomain.domain.ac.za

</Virtual= Host>

=C2=A0

<VirtualHost _de= fault_:443>

=C2=A0=C2=A0 ServerName subdomain.domain.ac.za

=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SSLEngine On

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 SSLCertificateKeyFile /etc/pki/tls/certs/cnrstone/ xxxxxx.key=

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0SSLCertificateFile /etc/pki/tls/certs/cnrstone/ xxxxxx.crt=

=C2=A0=C2=A0=C2=A0

<= span lang=3D"EN-GB" style=3D"font-size:11.0pt">=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0DocumentRoot "/var/www/subdo= main.domain.ac.za/public_html"

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 <Directory "/var/www/ subdomain.domain.ac.za/= public_html">

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0Options Indexes FollowSymLinks MultiViews=

= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # = AllowOverride controls what directives may be placed in .htaccess files.

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AllowOverride All

=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # Controls who= can get stuff from this server file

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Ord= er allow,deny

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Allow from all

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 </Directory>

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <IfModule mpm_peruse= r_module>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Se= rverEnvironment apache apache

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </IfModule></VirtualHos= t>

=C2=A0

In addition, I have re= ceived serveral .crt files for a wild card certificate issues by Comodo.=C2= =A0 Do I have to include them all and how will a go about doing so, if I ha= ve to?

=C2=A0

Thank you in advance.=

=C2=A0

Kind Regards=

Leon



=C2=A0=

--

Daniel Ferradal=

IT Specialist

=C2=A0

email =C2=A0 =C2=A0 =C2=A0 =C2=A0 dferradal=C2=A0at gmail= .com

linkedin =C2=A0 =C2=A0 es.linkedin.com/in/danielferradal




--
Daniel Ferradal
IT Specialis= t

= email =C2=A0 =C2=A0 =C2=A0 =C2=A0 dferradal= =C2=A0at gmail.com
= linkedin =C2=A0 =C2=A0 es.linkedin.com/in/danielferradal


=

--
Da= niel Ferradal
IT Specialist

<= /font>
email =C2=A0 =C2=A0 =C2=A0 =C2=A0<= font color=3D"#6fa8dc"> dferradal=C2=A0at gmail.com

--001a113a7ee88990af053798abfe--