Re: Apache rewrite rules
Steve McMahon <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAOqzbgiMQ4orLR-21uYw-PN9+HY-buhwuVWCFMy0S5UQu7hHsQ@mail.gmail.com> |
The "doc" tab indeed doesn't exist. But the "About" tab does, and has what you need: Inside-out hosting Another use for virtual hosting is to make Zope appear to be part of a site controlled by another server. For example, Zope might only serve the contents of *http://www.mycause.org/dynamic_stuff <http://www.mycause.org/dynamic_stuff>*. To accomplish this, you want to add "dynamic_stuff" to the start of all Zope-generated URLs. If you insert *VirtualHostRoot*, followed by one or more path elements that start with '_vh_', then these elements will be ignored during traversal and then added (without the '_vh_') to the start of generated URLs. For instance, a request for "/a/VirtualHostRoot/_vh_z/" will traverse "a" and then generate URLs that start with */z*. In our example, you would have the main server send requests for *http://www.mycause.org/dynamic_stuff/anything <http://www.mycause.org/dynamic_stuff/anything>* to Zope, rewritten as */VirtualHostRoot/_vh_dynamic_stuff/anything*. On Fri, Mar 6, 2015 at 12:46 PM, espen <[email protected]> wrote: > Hi and thanks a lot for helping > > > You want "inside-out" hosting. It's documented in the virtual host monster > itself (ZMI) on its docs tab. > > > does it have a docs tab ? > (do you mean DocfinderTab) > > Its friday, so I dont have it :) > > I just found something that seems to work, not sure if it is a «good > idea», though: > > ------------------ > > RewriteRule ^/bose/(.*)$ /home/site/bose/$1 [L] > > RewriteRule ^/(.*)$ > http://127.0.0.1:9095/VirtualHostBase/http/www.site.no:80/site/VirtualHostRoot/$1 > [L,P] > > > > On Fri, Mar 6, 2015 at 9:57 AM, Espen Moe-Nilssen <<a > href="x-msg://7/user/SendEmail.jtp?type=node&node=7573352&i=0" > target="_top" rel="nofollow" link="external">[hidden email]> wrote: > >> I been trying and trying to get this to work, but my knowledge of apache >> is a bit small (and I feel I have tried everything) >> >> I have setup the rewrite rules in apache from webmin. >> >> ————— >> >> ServerName www.site.no >> RewriteEngine On >> RewriteRule ^/(.*)$ >> http://127.0.0.1:8080/VirtualHostBase/http/www.site.no:80/sitename/VirtualHostRoot/$1 >> [L,P] >> >> ——————— >> I want to serve files in folder /home/site/bose from >> http://site.no/bose >> >> ——————— >> which I get serve via another URL with: >> >> DocumentRoot /home/site/bose >> ServerName bose.site.no >> <Directory /home/site/bose> >> allow from all >> Options None >> </Directory> >> >> ———————— >> >> How can this be done ? >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Plone-Users mailing list >> <a href="x-msg://7/user/SendEmail.jtp?type=node&node=7573352&i=1" >> target="_top" rel="nofollow" link="external">[hidden email] >> https://lists.sourceforge.net/lists/listinfo/plone-users >> > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Plone-Users mailing list > <a href="x-msg://7/user/SendEmail.jtp?type=node&node=7573352&i=2" > target="_top" rel="nofollow" link="external">[hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://plone.293351.n2.nabble.com/Apache-rewrite-rules-tp7573349p7573352.html > To start a new topic under General Questions, email [hidden email] > <http:///user/SendEmail.jtp?type=node&node=7573353&i=0> > To unsubscribe from Plone, click here. > NAML > <http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > > > ------------------------------ > View this message in context: Re: Apache rewrite rules > <http://plone.293351.n2.nabble.com/Apache-rewrite-rules-tp7573349p7573353.html> > Sent from the General Questions mailing list archive > <http://plone.293351.n2.nabble.com/General-Questions-f293352.html> at > Nabble.com. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Plone-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plone-users > > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Plone-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-users