https://sunshine.rahul.net/~USERNAMEYou do not need to buy or install any SSL certificate. The server already has an SSL certificate installed in it.
If a URL like the one above does not work, it may be the case that your default domain has not been set. Go to the DirectAdmin domain administration menu, and set your desired domain as the default. For example, if your web site is at www.example.com, then set example.com as your default domain. Now https://sunshine.rahul.net/~USERNAME will go to www.example.com.
Don't try to access your web site via an SSL connection using your own domain name, as this will lead to a certificate mismatch and a browser warning.
With the default domain set as above, the ~USERNAME syntax will always force a web access to that default domain.
To use multiple domains with SSL, you will need to adjust a symblic link in your account.
Using ssh, log into your account, and make sure there is a symbolic
link called "public_html" in your home directory that points to
'domains'. For example:
(log in with ssh) % rm -f public_html % ln -s domains public_html(The % is the shell prompt -- it might look different.) The second line above removes any old public_html symbolic link. The third line creates a new symbolic link called "public_html" in your home directory that points to 'domains'.
The effect of doing the above will be that accesses to
https://sunshine.rahul.net/~USERNAME
will now let you access any of your domains. Simply append the domain
name and another "public_html" to the above string. For example:
https://sunshine.rahul.net/~USERNAME/example.com/public_html https://sunshine.rahul.net/~USERNAME/anotherexample.com/public_html ... https://sunshine.rahul.net/~USERNAME/yetanothreexample.com/public_html
Normal http accesses to http://www.example.com/ etc. will not be affected by the above changes.
If you want to shorten the URLs, you can create multiple symbolic links
in your 'domains' subdirectory. This is for expert users only! For
example, if you create a symbolic link in your 'domains' directory called
'e' that points to 'example.com/public_html', then the https
URL for example.com becomes:
https://sunshine.rahul.net/~USERNAME/e
In the future, if you want https://sunshine.rahul.net/~USERNAME to always
go to one specific domain, simply go to the DirectAdmin domain
administratoin menu, and set a default domain. Then all accesses to
https://sunshine.rahul.net/~USERNAME will go to the default domain.
This document is: http://faq.rahul.net/cgi-bin/fom.cgi?file=16
[Search]
[Appearance]
This is a Faq-O-Matic 2.721.