You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/07/23 11:19:18 UTC
[Cocoon Wiki] Updated: VirtualHost
Date: 2004-07-23T02:19:17
Editor: StavrosKounis <go...@osmosis.gr>
Wiki: Cocoon Wiki
Page: VirtualHost
URL: http://wiki.apache.org/cocoon/VirtualHost
no comment
Change Log:
------------------------------------------------------------------------------
@@ -15,13 +15,13 @@
In the main cocoon sitemap we have add a pipeline:
-{{{
- <map:pipeline>
- <!-- vhost sub -->
- <map:match pattern="*.gr/**">
- <map:mount uri-prefix="{1}.gr" src="/home/vhost/xml/{1}.gr/htdocs/sitemap.xmap" check-reload="yes"/>
- </map:match>
- </map:pipeline>
+{{{
+ <map:pipeline>
+ <!-- vhost sub -->
+ <map:match pattern="*.gr/**">
+ <map:mount uri-prefix="{1}.gr" src="/home/vhost/xml/{1}.gr/htdocs/sitemap.xmap" check-reload="yes"/>
+ </map:match>
+ </map:pipeline>
}}}
all our virtual hosted sites are in /home/vhost/xml/{domain-name}.gr/htdocs (we host sites in .gr domain) with sub sitemap in htdocs directory
@@ -32,41 +32,42 @@
== Apache ==
-There is a configuration file for each domain:
+There is a configuration file for each domain:[[BR]]
+''in this example some directories contain static content and are server from apache to save load from cocoon.''
+
+{{{
+<VirtualHost *:80>
+
+<Directory /home/vhost/xml/{domain-name}.gr/htdocs>
+Options -Indexes
+order allow,deny
+allow from all
+</Directory>
+
+ ServerAdmin webmaster@osmosis.gr
+ DocumentRoot /home/vhost/xml/{domain-name}.gr/htdocs
+ ServerName *.{domain-name}.gr
+ ServerAlias {domain-name}.gr *.{domain-name}.gr
+ ErrorLog /home/vhost/xml/{domain-name}.gr/logs/{domain-name}.gr.error_log
+ CustomLog /home/vhost/xml/{domain-name}.gr/logs/{domain-name}.gr.access_log combined
+
+<Location /WEB-INF>
+ Order deny,allow
+ Deny from all
+</Location>
+
+#static content is served from apache
+ProxyPass /media/ !
+ProxyPass /stats/ !
+ProxyPass /images/ !
+ProxyPass /themes/images/ !
+
+#all the rest are passed to cocoon
+ProxyPass / http://localhost:8080/cocoon/{domain-name}.gr/
+ProxyPassReverse / http://localhost:8080/cocoon/{domain-name}.gr/
+
+ProxyErrorOverride On
+
+</VirtualHost>
-{{{
-<VirtualHost *:80>
-
-<Directory /home/vhost/xml/{domain-name}.gr/htdocs>
-Options -Indexes
-order allow,deny
-allow from all
-</Directory>
-
- ServerAdmin webmaster@osmosis.gr
- DocumentRoot /home/vhost/xml/{domain-name}.gr/htdocs
- ServerName *.{domain-name}.gr
- ServerAlias {domain-name}.gr *.{domain-name}.gr
- ErrorLog /home/vhost/xml/{domain-name}.gr/logs/{domain-name}.gr.error_log
- CustomLog /home/vhost/xml/{domain-name}.gr/logs/{domain-name}.gr.access_log combined
-
-<Location /WEB-INF>
- Order deny,allow
- Deny from all
-</Location>
-
-#static content is served from apache
-ProxyPass /media/ !
-ProxyPass /stats/ !
-ProxyPass /images/ !
-ProxyPass /themes/images/ !
-
-#all the rest are passed to cocoon
-ProxyPass / http://localhost:8080/cocoon/{domain-name}.gr/
-ProxyPassReverse / http://localhost:8080/cocoon/{domain-name}.gr/
-
-ProxyErrorOverride On
-
-</VirtualHost>
-
}}}