[Zope] base instead of SiteAccess

2000-08-22 Thread George Osvald

I am using ProxyPass configuration with Apache and SiteAccess. My web-site
is located on ISP's server in my user directory. Because I can't stay on
line for too long during a day(I have a phone on the same line) I tend to do
all editing off line and then at night upload the lot. The subdirectory of
my web site is 'okstudio'. Because I am using SiteAccess(with 'base' in the
folder 'okstudio'), none of the relative links worked on my local machine. I
like my links nice and short that do not include '/okstudio/'. It looks too
long in the address window of my browser. Before each upload to the server I
had to change the links.  I was trying to use SiteAccess on my home machine
but could not get it working. It would not work for http://localhost or
http://localhost:8080 ..and so and so. I tried several times without a
success. Then I decided to use a different approach. I created a property
'base' in the root folder of my site. The string is: base
href="http://localhost:8080/okstudio/". Then I put dtml-var base in my
standard_html_header and all the alternative headers I use (JavaScript and
stuff). All I have to do now is change the 'base' property to base
href="http://www.myserver.com.au/" before each upload and all the links can
stay the same. I would not even have to use SiteAccess at all if I had a
little redirection method in my root directory. It is all OK but I would
like to know if there is a way how to make SiteAccess working on the local
machine so I can have almost identical setup locally. Can you help anyone?

I am also serving local files located in my original public_html directory
from ZOPE going directly to my user directory. The links look like this:
http://123.45.678.9/~username . Would that be considered a security risk
exposing my user directory like that?
George Osvald


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] base instead of SiteAccess

2000-08-22 Thread Evan Simpson

From: "George Osvald" [EMAIL PROTECTED]


 I am using ProxyPass configuration with Apache and SiteAccess.
[snip]
 The subdirectory of my web site is 'okstudio'.
[snip]
 I was trying to use SiteAccess on my home machine
 but could not get it working. It would not work for http://localhost or
 http://localhost:8080 ..and so and so.

I'm going to guess at your configuration; please correct me where I miss:

1. Apache with "ProxyPass / http://localhost:8080/okstudio "

2. SiteRoot in "/okstudio" with Base == "http://www.okstudio.com" and Path
== "/"

You want to be able to run a copy at home, connect directly to Zope, and
browse the site.

At home, set the Base=="" and add the following Access Rule in your root:

dtml-let path="REQUEST.path"
dtml-unless expr="path and path[-1] == 'okstudio' "
dtml-call expr="path.append('okstudio')"
/dtml-unless
/dtml-let

This way, requests to http://localhost:8080 will get rewritten to
http://localhost:8080/okstudio without affecting URLs (thanks to the
Path=="/" in the SiteRoot).

Cheers,

Evan @ 4-am  digicool


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )