...
Modify the Apache configuration.
Info |
---|
All the entries are derived from etc/apache2/sites-available/default-ssl. Read the comments in that file for a more in depth understanding of the configurations. |
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.bonsaiframework.com/www.myrapham.com/ni" Substitute "s/www.bonsaiframework.com/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> |
...