Newbie: How can index_html point at folder/index_html?
My website sits in a folder in the Zope root. How can I have the root�s index_html point at the folders index_html, so that a visitor addressing the root will automatically be "transferred" to the website? Various attempts with "var" have failed. Do I need a "virtual host monster"? I have only one website in the installation. Thanks for answers Jan --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search
On Mon, 2003-10-13 at 03:20, aa bb wrote:
My website sits in a folder in the Zope root. How can I have the root?s index_html point at the folders index_html, so that a visitor addressing the root will automatically be "transferred" to the website? Various attempts with "var" have failed. Do I need a "virtual host monster"? I have only one website in the installation.
If you know for certain that you'll only have one website in this Zope install ever, there's no great advantage to creating a "site root" folder... just use the root. On the other hand, if there's a decent chance you *might* be doing some virtual hosting (or exposing different hosts within this one domain), a VHM and/or Apache rewrite rule will do exactly what you want. It's a pretty good idea to run Apache anyway if this is a public web site. It is *possible* to have an index_html object in the root that redirects the user to your site root or one which renders and returns the site root's index_html. But then you have to deal with how to serve inner pages, which will be a hassle. Your two best options are to run VHM and/or Apache or to put the objects where you want them served from. HTH, Dylan
On Mon, Oct 13, 2003 at 07:18:03AM -0700, Dylan Reinhardt wrote:
On Mon, 2003-10-13 at 03:20, aa bb wrote:
My website sits in a folder in the Zope root. How can I have the root?s index_html point at the folders index_html, so that a visitor addressing the root will automatically be "transferred" to the website? Various attempts with "var" have failed. Do I need a "virtual host monster"? I have only one website in the installation.
If you know for certain that you'll only have one website in this Zope install ever, there's no great advantage to creating a "site root" folder... just use the root.
that's OK i guess... except I have no confidence in "ever" :-) And even if it remains true, it's still a lot easier to back up or move your site if you keep it in its own folder. It's annoying having to individually export 37 items in the root... to answer the original question: yes, you can do what you want with VHM. --PW -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's FLAMING MIME CHAIN! (random hero from isometric.spaceninja.com)
participants (3)
-
aa bb -
Dylan Reinhardt -
Paul Winkler