cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: VirtualHostingHostMatcher
Date Thu, 05 Aug 2004 14:17:14 GMT
   Date: 2004-08-05T07:17:14
   Editor: ViPi <ViPi@arcor.de>
   Wiki: Cocoon Wiki
   Page: VirtualHostingHostMatcher
   URL: http://wiki.apache.org/cocoon/VirtualHostingHostMatcher

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -19,12 +19,9 @@
    /opt/virtHosts/customerC/
    /opt/virtHosts/www.foo.tld/
 }}}
-Make sure your Nameserver knows about all the hosts. If you are on a local machine without
nameserver you can add them to /etc/hosts file.
-Put some sample which you know that is working into each customerX directory.
+Make sure your Nameserver knows about all the hosts. If you are on a local machine without
nameserver you can add them to /etc/hosts file.[[BR]]Put some sample which you know that is
working into each customerX directory.
 == Define HostMatcher ==
-The default sitemap already has many ["Matcher"]s defined but there are some more that we
could add.
-
-Backup your '''/opt/cocoon/ROOT/sitemap.xmap''' and open it with your favourite editor.
+The default sitemap already has many ["Matcher"]s defined but there are some more that we
could add.[[BR]]Backup your '''/opt/cocoon/ROOT/sitemap.xmap''' and open it with your favourite
editor.
 Search for the section
 {{{
  <map:components>
@@ -83,12 +80,12 @@
 }}}
 Save your changes to sitemap.xmap.
 == http://cocoon:8080/ or http://cocoon/ ==
-Be aware that we added one new matcher matching '''http://cocoon:[portnumber]/''' nested
with all other matches from the original pipeline. Please change it from '''pattern="cocoon:**"'''
to '''pattern="cocoon"''' if you've connected Tomcat to Apache or if you configured Tomcat
to listen on port 80. Restart Tomcat and start your browser with '''http://customerA/''' or
another.
+Be aware that we added one new matcher matching '''http://cocoon:[portnumber]/''' nested
with all other matches from the original pipeline.[[BR]]Please change it from '''pattern="cocoon:**"'''
to '''pattern="cocoon"''' if you've connected Tomcat to Apache or if you configured Tomcat
to listen on port 80. Restart Tomcat and start your browser with '''http://customerA/''' or
another.
 == Conclusion ==
 Setting up a new virtual host requires just only creating in /opt/virtHosts/ a directory
with its name being the same as the host name.
 ------
 Feel free to put any comments or corrections or to contact the author for questions under
mailto:volkmar@pogatzki.net
 
 == Related stuff ==
-
-[Cocoon virtual hosting with apache at front VirtualHost]
+Of course, Cocoon has a [http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/matching/RegexpHostMatcher.html
RegexpHostMatcher] too and also a [http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/HostSelector.html
HostSelector] which already got its own wikipage HostSelector.[[BR]]
+If you prefer having Apache in front to match the (virtual) hosts, please have a look at
Stavros Kounis' VirtualHost.

Mime
View raw message