Welcome to Squishdot Squishdot Websites How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf
 main


Squishdot, Zope, Apache Rewrite, VHM interactions
Websites Posted by John S. Wolter on Monday September 04, @04:26PM
from the Stubbed my toes as I approach a site... dept.
Ok, all is loaded, I'm running SUSE LINUX 9.3 with its Zope 2.7.4, Apache 2.0.53, BIND, and Squishdot 1.5.0(from changes.txt). The issue is accessing a Squishdot site within my Zope instance. I setup a site one level below the Zope root in a folder. Thus its URI is 'afolder/mysquishdot'. I want to address it in the brower this way..
http://www.website.com/mysquishdot/. Of course I have to use Apache2's mod_proxy and mod_rewrite. I've tried writing a RewriteRule this way...
RewriteRule ^/mysquishdot/$ http://192.168.1.64:8080/VirtualHostBase/http/www.wolterworks.net:80/afolder/mysquishdot/VirtualHostRoot/$1 [L,P]

So it gets the main page index_html which _mostly_ renders but the Squishdot image at the top reports the infamous 404 message in the Apache log files

/mysquishdot/ HTTP/1.1" 200 32690
then...
/Images/advert_img HTTP/1.1" 404 3943
/Images/sitetitle_img HTTP/1.1" 404 3943
/TopicImages/squishdot_img HTTP/1.1" 404 3949

The RewriteRule relies on /mysquishdot/ leading the URL which /Images/ is lacking. The RewriteRule correctly does not activate. So the next rule does activate which does not redirect to the /afolder/mysquishdot URI.

I can acesss the site by typing...
http://www.website.com/afolder/mysquishdot
.. and it comes up in all its glory. The ^/(.*) 2nd rule is working, good for this way accessing.

Well, I want to avoid the performance hit of the VHM. Further, I want to install multiple sites just to add some challenge to this. I am using a singe IP address and name based virtual hosting through Apache.

Does anyone have any insight as to how to make RewriteRules work for this application.




Post Reply

Name
Email
Notify Notify me via email of responses to this message
Title
Comment
(Check those URLs! Don't forget the http://!)
Encoding
If none of the above mean anything to you, select 'Plain'!
Attachment
(You can attach a file to your reply which can then be retrieved by other readers.
Try to keep the file sizes below 500Kb in order to conserve network and server resources.)
Allowed HTML <B> <I> <P> <A> <LI> <OL> <UL> <EM> <BR> <TT> <HR> <STRONG> <BLOCKQUOTE> <DIV .*> <DIV> <P .*>
Important Stuff:
  • Note: Fields with bold titles are required.
  • Please try to keep posts on topic.
  • Try to reply to other people comments instead of starting new threads,
  • Read other people's messages before posting your own to avoid simply duplicating what has already been said.
  • Use a clear subject that describes what your message is about.
  • Please do not post offtopic, inflammatory, inappropriate, illegal, or offensive comments. Repeat offenders will be sanctioned.
  • Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.