...
Code Block | ||
---|---|---|
| ||
sudo a2enmod ssl Enabling module ssl. See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates. Run '/etc/init.d/apache2 restart' to activate new configuration! |
Modify the Apache configuration.
Code Block | ||||
---|---|---|---|---|
| ||||
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.myrapham.com ServerAlias myrapham.com # Enforce www in front of url. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.myrapham\.com$ [NC] RewriteRule (.*) http://www.myrapham.com$1 [R,L] DocumentRoot /home/www.myrapham.com/www <Directory /> # This prevents use of .htaccess AllowOverride None </Directory> ErrorLog /var/log/apache2/www.myrapham.com.error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/www.myrapham.com.access.log combined # Mount application on Tomcat JkMount /wiki/* tomcat_confluence_a_worker JkMount /wiki tomcat_confluence_a_worker <Location /wiki/> FilterDeclare filter_string_replace FilterProvider filter_string_replace SUBSTITUTE resp=Content-Type $text/html Substitute "s/www.breakitdown.ca/www.myrapham.com/ni" Substitute "s/Break It Down/www.myrapham.com/n" FilterChain filter_string_replace Redirect permanent /wiki/dashboard.action http://www.myrapham.com/wiki/display/myra/Home Redirect permanent /wiki/display/myrahouse/Home http://www.myrapham.com/wiki/display/myra/Home </Location> </VirtualHost> |
http://www.startssl.com/?app=21
Note |
---|
It is not possible to run multiple SSL-enabled virtual hosts on a server with only one IP address. A separate IP address or port is necessary for each SSL-enabled domain. There are new modules that provide this functionality, but as of May 2011 it is not yet widely supported by browsers. |
...