![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Apache as a "frontend" on top of Comanche using "reverse proxying" and "virtual hosting"here is my vhost entry in my apache 1.3 httpd.conf file for my virtual domain http://wiki.gudinna.com hope this will help.// zyz dont forget to load your proxy and rewrite module, rewrite is used to handle some misplaced url's. LoadModule proxy_module /usr/lib/apache/modules/libproxy.so LoadModule rewrite_module /usr/lib/apache/modules/mod_rewrite.so <VirtualHost> ServerName wiki.gudinna.com #basic you will need something like this ProxyPass / http://www.gudinna.com:8000/gudinna/ ProxyPassReverse / http://www.gudinna.com:8000/gudinna/ RewriteEngine on RewriteRule ^/gudinna/(.*)$ /$1 [R] #move of some files located in / on the original swiki RewriteRule ^/comanche.gif$ http://www.gudinna.com:8000/comanche.gif [R] RewriteRule ^/favicon.ico$ http://www.gudinna.com/favicon.ico [R] #These rules makes apache handle heavy workload for uploads and button graphics. #note these two "speedups" will not work on ComSwiki 1.3 for files with spaces in the filename. RewriteRule ^/schemes/gudinna/(.*)$ http://www.gudinna.com/gudinna_scheme/$1 [R] RewriteRule ^/uploads/(.*)$ http://www.gudinna.com/gudinna_uploads/$1 [R] #Forces edit page requests to go to the slower wiki. if you never want to reveal your true swiki url remove this line. RewriteRule ^/(.*.edit)$ http://www.gudinna.com:8000/gudinna/$1 [R] </VirtualHost> Links to this Page
|