Re: [Zope] Problem with SiteAccess

2001-01-04 Thread Leonardo Graf


It sounds like your SiteRoot object doesn't have "Base" (aka the
Base URL) set correctly.

It should be set to:
http://www.somesite.com

The SiteAccess Rule is only needed if you have *multiple* hosts
served out from one host.  You sound like you only have one.

Ciao!

--
There is no sweeter sound than the crumbling of your fellow man.
 -- Groucho Marx

The Doctor What: A really hip dude   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

Thanks for the answer, but the base is set correctly to 
http://www.somesite.com and the path to / so I'm really a bit lost here. 
One possibility I considered is setting the base 
href="http://www.somesite.com" tag in the header of my pages, but in that 
case I don't need the SiteRoot anymore...

By the way, I probably want to serve multiple hosts from one later on, so 
it would be nice to have an example of a SiteAccess rule.

Thanks and regards, Leonardo Graf



___
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] Problem with SiteAccess

2001-01-04 Thread Leonardo Graf

At 13:13 03.01.01 -0600, you wrote:
* Leonardo Graf ([EMAIL PROTECTED]) [010103 09:16]:
  Hello,
 
  I'm trying to use the SiteAccess Product as discribed in the HowTo: Using
  Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as
  described.
 
  My ZServer is listening on www.myserver.com:9080/somesite. I would like to
  be able to access the ZServer through apache via the URL www.somesite.com
  (to do virtual hosting).
 
  The ProxyPass directives work well (the pages get served properly), but 
 the
  URL's in my pages still contain the complete URL's of the ZServer, like
  img src="http://www.myserver.com:9080/somesite/images/some.gif" instead
  of img src="http://www.somesite.com/images/some.gif". The same is true
  for normal links. Ok, it's not so bad, things work (no broken links), but
  it is a little bit ugly. I thought the SiteAccess Product should handle
  these problems, by putting a SiteRoot object in the somesite folder.
 
  Or do I have to write an AccessRule ? And how would that look like ?
 
  Thanks a lot, regards, Leonardo Graf

It sounds like your SiteRoot object doesn't have "Base" (aka the
Base URL) set correctly.

It should be set to:
http://www.somesite.com

The SiteAccess Rule is only needed if you have *multiple* hosts
served out from one host.  You sound like you only have one.

Ciao!

--
There is no sweeter sound than the crumbling of your fellow man.
 -- Groucho Marx

The Doctor What: A really hip dude   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

Funny, I just restarted my ZServer and now everything works like magic, 
perhaps I should do that more often... sorry for the inconvenience,

Regards, Leonardo Graf



___
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] Problem with SiteAccess

2001-01-04 Thread The Doctor What

* Leonardo Graf ([EMAIL PROTECTED]) [010104 06:42]:
 By the way, I probably want to serve multiple hosts from one later on, so 
 it would be nice to have an example of a SiteAccess rule.

Here is a messy one.  There is another with the SiteAccess2
documentation someplace...

http://docwhat.gerf.org:9673/siteid/view_source

Ciao!

-- 
"Apparently if you play the Windows NT CD backwards you hear satanic

The Doctor What: Need I say more?http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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 )




[Zope] Problem with SiteAccess

2001-01-03 Thread Leonardo Graf

Hello,

I'm trying to use the SiteAccess Product as discribed in the HowTo: Using 
Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as 
described.

My ZServer is listening on www.myserver.com:9080/somesite. I would like to 
be able to access the ZServer through apache via the URL www.somesite.com 
(to do virtual hosting).

The ProxyPass directives work well (the pages get served properly), but the 
URL's in my pages still contain the complete URL's of the ZServer, like 
img src="http://www.myserver.com:9080/somesite/images/some.gif" instead 
of img src="http://www.somesite.com/images/some.gif". The same is true 
for normal links. Ok, it's not so bad, things work (no broken links), but 
it is a little bit ugly. I thought the SiteAccess Product should handle 
these problems, by putting a SiteRoot object in the somesite folder.

Or do I have to write an AccessRule ? And how would that look like ?

Thanks a lot, regards, Leonardo Graf


___
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] Problem with SiteAccess

2001-01-03 Thread The Doctor What

* Leonardo Graf ([EMAIL PROTECTED]) [010103 09:16]:
 Hello,
 
 I'm trying to use the SiteAccess Product as discribed in the HowTo: Using 
 Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as 
 described.
 
 My ZServer is listening on www.myserver.com:9080/somesite. I would like to 
 be able to access the ZServer through apache via the URL www.somesite.com 
 (to do virtual hosting).
 
 The ProxyPass directives work well (the pages get served properly), but the 
 URL's in my pages still contain the complete URL's of the ZServer, like 
 img src="http://www.myserver.com:9080/somesite/images/some.gif" instead 
 of img src="http://www.somesite.com/images/some.gif". The same is true 
 for normal links. Ok, it's not so bad, things work (no broken links), but 
 it is a little bit ugly. I thought the SiteAccess Product should handle 
 these problems, by putting a SiteRoot object in the somesite folder.
 
 Or do I have to write an AccessRule ? And how would that look like ?
 
 Thanks a lot, regards, Leonardo Graf

It sounds like your SiteRoot object doesn't have "Base" (aka the
Base URL) set correctly.

It should be set to:
http://www.somesite.com

The SiteAccess Rule is only needed if you have *multiple* hosts
served out from one host.  You sound like you only have one.

Ciao!

-- 
There is no sweeter sound than the crumbling of your fellow man.
-- Groucho Marx

The Doctor What: A really hip dude   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] Problem with SiteAccess 1.0.1

2000-08-29 Thread William JOYE

 From: William JOYE [EMAIL PROTECTED]
  I have some minor problems with SiteAccess 1.0.1 and Zope 
 2.1.6 + hotfix.
 
  1. When click on the folder that contain SiteRoot, I need 
 to enter again
  login and password. Why ?
 
 Most likely, because you have a Base set in your SiteRoot 
 that differs from
 the base URL you had logged into.  Your browser will not send your
 authentication information to a URL with a different host name.

In my Zope root directory, I have created a folder by site. So I have
folders : Site1, Site2,... I have included in each folder a Siteroot object
with the following parameters :
For Site1 (subfolder site1) :
Base: http://www.site1.com
Path: /

For Site2 (subfolder site2) :
Base: http://www.site2.com
Path: /
 
And so on...

In the Apache configuration, I have also set a rewrite rule for each domain
like this :

VirtualHost xxx.xxx.xxx.xxx

ServerName www.site1.com


RewriteEngine on

RewriteCond %{HTTP:Authorization}  ^(.*)

RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/Site1/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
/VirtualHost

Is it correct ?

I have another strange behavior. When I copy an object from Site1 folder, I
can't past it in the Site2 folder. Is it normal ?

___
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] Problem with SiteAccess 1.0.1

2000-08-29 Thread Dieter Maurer

William JOYE writes:
  I have some minor problems with SiteAccess 1.0.1 and Zope 2.1.6 + hotfix.
  
  1. When click on the folder that contain SiteRoot, I need to enter again
  login and password. Why ?
  2. When I delete an object, I have always an script error message. Why ?

We use SiteAccess 1.0.1 with Zope 2.1.6 and do not see
your problems.

I know, this does not answer your questions,
but it may give you hope that the problem is not in SiteAccess
per se, but in the way you are using it.


Dieter

___
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 )




[Zope] Problem with SiteAccess 1.0.1

2000-08-28 Thread William JOYE

Hello,

I have some minor problems with SiteAccess 1.0.1 and Zope 2.1.6 + hotfix.

1. When click on the folder that contain SiteRoot, I need to enter again
login and password. Why ?
2. When I delete an object, I have always an script error message. Why ?

Are these problems already fixed ? Is the SiteAccess 1.0.1 product stable
enough to use it in production ?

___
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] Problem with SiteAccess 1.0.1

2000-08-28 Thread Evan Simpson

From: William JOYE [EMAIL PROTECTED]
 I have some minor problems with SiteAccess 1.0.1 and Zope 2.1.6 + hotfix.

 1. When click on the folder that contain SiteRoot, I need to enter again
 login and password. Why ?

Most likely, because you have a Base set in your SiteRoot that differs from
the base URL you had logged into.  Your browser will not send your
authentication information to a URL with a different host name.

 2. When I delete an object, I have always an script error message. Why ?

Sorry, you'll need to be more specific.  When you delete an object inside
the SiteRooted folder, or anywhere?  What error message? (traceback too,
please)

 Are these problems already fixed ? Is the SiteAccess 1.0.1 product stable
 enough to use it in production ?

It runs all of my domains, and those of a fair number of other people.
YMMV.

Cheers,

Evan @ digicool  4-am


___
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 )