Link to home
Start Free TrialLog in
Avatar of jcw20
jcw20Flag for United States of America

asked on

How do I Configure or Setup Apache SSl Configuration

How do i create ssl certifacate and sign it  and have jdcamp.org come up as https://jdcamp.org by default  or if someone types http://jdcamp.org automaticly switch to https://jdcamp.org
Avatar of jcw20
jcw20
Flag of United States of America image

ASKER

NameVirtualHost 10.10.10.4:80
NameVirtualHost  10.10.10.4:443
<VirtualHost 10.10.10.4:80>
ServerAdmin jessewhittington@hotmail.com
ServerName  www.jdcamp.org
DocumenRoot /var/www/html/jdcamp
CustomLog  /var/www/hml/jdcamp/logs/access-log comen
ErrorLog       /var/www/hml/jdcamp/logs/error-log comen
</VirtualHost>
Avatar of jcw20

ASKER

need more help
ASKER CERTIFIED SOLUTION
Avatar of PSSUser
PSSUser
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry just realised I didn't answer your other question about default SSL.

One way is to have
<VirtualHost 10.10.10.4:80>
  Redirect 301 / https://jdcamp.org
</VirtualHost>

The virtual host means it only applies to connections comming in on port 80. The Redirect 301 code means permanent move/redirect. The / means any url and obviously the https://jdcamp.org is where to.