How do you set up SSL certificates for Virtual Hosts
I need to set up a CA Signed certificate for a Virtual Host in Intrepid 8.10.
I want the certificate for *.myworkingdoma
Can I just create a folder called myuser in /etc/apache2/ssl and create my certificates in there, then in /etc/apache2/
** showing local ip's for this example instead of the real ip's
<VirtualHost 10.0.0.203:*>
DocumentRoot "/home/
ServerName mysite.com
<Directory "/home/
allow from all
Options +Indexes
</Directory>
ServerAlias www.mysite.com
DirectoryIndex home.php index.php
SSLEngine on
SSLProtocol +SSLv3 +TLSv1
SSLCertificateFile /etc/apache2/
SSLCertificateK
</VirtualHost>
??
In trying this configuration with a self signed cert., restart apache and browse http://
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
If I add the 's' to http. I get domain not found.
also, I can no longer browse any virtual host on this local test server from an external computer in my office. Only my ubuntu machine.
Any clues much appreciated.
Confession: I have always used RH and c-Panel WHM, so I didn't need to know this stuff.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apache2 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- idh63
- Solved:
- Last query:
- Last reply: