Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
  1. I have linux server with plesk panel. I am running sourceforge VM in NAT mode with static ip 172.16.63.XX. In my host i have configured subdomain's (vhost.conf) with proxypass to connect with VM machine.. I can access sourceforge VM with http.

I am searching for http redirecting to https.

http://xxx.mydomain.com --> https://xxx.mydomain.com/sf/sfmain/do/home/ .

  1. just need to know, If I own a SSL for mydomain.com. if i redirect a xxx.mydomain.com to mydomain.com/folder will the SSL will be applied to redirected domain? i.e mydomain.com/folder?
share|improve this question

1 Answer 1

First thing: with SSL, if you redirect from "https://subdomain.domain.com" to "https://domain.com" the browser will throw security warnings unless you have a separate certificate for the subdomain, or a wildcard SSL certificate for the domain.

Secondly: whilst I don't have much of a clue about your setup, virtual hosts can be configured to redirect from http to https and vice versa, simply by using the http or https in the URL you are redirecting to. You haven't specified what kind of webserver you are using so I will assume Apache; this is an apache virtual host configuration for xxx.domain.com that will take any request to this server for xxx.domain.com and redirect to "https://mydomain.com/folder/".

<VirtualHost *:80>
        ServerName xxx.mydomain.com
        RedirectMatch permanent ^/(.*) https://mydomain.com/folder/$1

see http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.