[Zope] index_html rendering problem under VHM

Dylan Reinhardt zope@dylanreinhardt.com
01 Jul 2003 16:38:36 -0700


Your problem is an artifact of your testing process. 

After the initial page loads, you need images and probably some CSS.  It
will look for these things where you have told the server it is
running... at www.dccc.edu.  But they aren't there, so they don't load.

For example, you have:
http://www.dccc.edu:8080/commcorp/commcorp.jpg
but nothing at:
http://www.dccc.edu/commcorp.jpg

Adding index_html allows acquisition to works some magic, I suspect. 
Your test is still wrong.  :-)

What you should do is pass Zope the *correct* address to serve itself
as.  If your apache test machine is at test.dccc.edu then *that* is the
domain you'll need to specify, not www.dccc.edu.  Don't use your
production address until you're ready to cut over.

HTH,

Dylan


On Tue, 2003-07-01 at 15:45, Jason Wertz wrote:
> I'm in the process of testing a VHM / Apache installation of Zope and I
> have no problems with setting up the rewrite rules to work. I'm running
> into problems testing it though...
> 
> Accessing my site like this with index_html appended to the url renders
> the page...
> 
> http://www.dccc.edu:8080/VirtualHostBase/http/www.dccc.edu:
> 80/VirtualHostRoot/commcorp/index_html
> 
> but if I leave off the index_html and just ask for the directory the
> page is a mess...you can see it for yourself. I'm only testing this by
> manually entering the URL so if this will be fixed by the Apache rewrite
> rules when it goes live please let me know. Rendering any other page by
> name works fine, it is only when the server has to pull up the default page
> for a directory that this happens.
> 
> I'm using Zope 2.5.1 and my site is in my Zope root not a subfolder
> (moving it to a subfolder didn't seem to fix anything). Do I need to
> write a rewrite rule to accomodate for this or is there an easier way?
> 
> Thanks in advance,
> 
> Jason Wertz
> Senior Technology Specialist / WebMaster
> Delaware County Community College
> ph: 610-325-2771
> fax: 610-325-2820
> http://learn.dccc.edu/~jason
> 
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )