← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #72827]: serving both http and https pages on same site

 

Question #72827 on apache2 in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/apache2/+question/72827

Iain Houston posted a new comment:
Update:
1) Typo: of course the path of DocumentRoot /home/iain/websites/<mywebsite>t/ssl-html should be the same as the <Directory /home/iain/websites/<mywebsite>/ssl-html>
2) In answer to my question above - if you are going to use the rewrite rule it gets inserted in the <Directory ....> entry from which you wish to redirect the incoming http pages (now to be served as https pages) e.g. in the above example I would insert it in the entry for the Virtual Server serving pages on port 80; namely below the text line:  <Directory /home/iain/websites/<mywebsite>/html>
Hope that helps someone.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.