You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mahmood Naderan <nt...@yahoo.com.INVALID> on 2018/08/21 13:25:17 UTC
[users@httpd] Basic question about https
Hi,
It is possible to have http://sub.somewhere/portal1 and https://sub.somewhere/portal2
For that, I have to define a document root in 000-default.conf and an entry for portal1 and then define an entry for portal2 in default-ssl.conf.
Is that a valid configuration? Or I have to define all directories in either 000-default.conf (http) or default-ssl.conf (https)?
Regards,
Mahmood
Re: [users@httpd] Basic question about https
Posted by Frank Gingras <th...@apache.org>.
Those two URLs point to the same vhost. You can either create directories
in the DocumentRoot for that vhost accordingly, or use simple Alias
directives.
Further, the config file where you defined your vhost isn't really
important.
On Tue, Aug 21, 2018 at 9:25 AM Mahmood Naderan
<nt...@yahoo.com.invalid> wrote:
> Hi,
>
> It is possible to have http://sub.somewhere/portal1
> <http://somewhere/portal1> and https://sub.somewhere/portal2
>
> For that, I have to define a document root in 000-default.conf and an
> entry for portal1 and then define an entry for portal2 in default-ssl.conf.
>
> Is that a valid configuration? Or I have to define all directories in
> either 000-default.conf (http) or default-ssl.conf (https)?
>
>
> Regards,
> Mahmood
>