Hi all, Due to a problem involving a hacker and our web server, we are going to be moving all of our users from Apache (~username) home pages into Zope - but the problem is, how do I redirect any entries from the original ~username to the new location, homes/username. Anyone done this before. Laurie PS Don't bother replying and telling me not to migrate users - it's not been my decision! :-) Laurie Nason Scientific Programmer National Center for Macromolecular Imaging Houston TX USA
Laurie Nason wrote:
Hi all,
Due to a problem involving a hacker and our web server, we are going to be moving all of our users from Apache (~username) home pages into Zope - but the problem is, how do I redirect any entries from the original ~username to the new location, homes/username.
Anyone done this before.
Laurie
PS Don't bother replying and telling me not to migrate users - it's not been my decision! :-)
Laurie Nason Scientific Programmer National Center for Macromolecular Imaging Houston TX USA
Laurie, *If* you front-end Zope with Apache, this becomes fairly easy. Use a rewrite rule in apache to do this. If you don't use Apache... well, I can think of a couple ways to do it... but I really recommend Apache instead. -- Matt Kromer Zope Corporation http://www.zope.com/
Hi Laurie, if you have an apache infront of Zope, you can use a rule from mod_rewrite which rewrites /~(.*)/ to /homes/\1/ . Regards, Dirk Laurie Nason schrieb:
Hi all,
Due to a problem involving a hacker and our web server, we are going to be moving all of our users from Apache (~username) home pages into Zope - but the problem is, how do I redirect any entries from the original ~username to the new location, homes/username.
Anyone done this before.
Laurie
PS Don't bother replying and telling me not to migrate users - it's not been my decision! :-)
Laurie Nason Scientific Programmer National Center for Macromolecular Imaging Houston TX USA
_______________________________________________ Zope maillist - Zope@zope.org 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 )
On Fri, Apr 26, 2002 at 02:49:50PM -0500, Laurie Nason wrote: | Hi all, | | Due to a problem involving a hacker and our web server, we are going to be | moving all of our users from Apache (~username) home pages into Zope - but | the problem is, how do I redirect any entries from the original ~username to | the new location, homes/username. I think that if you create folders in zope with names like /~username it would work transparently. The other possibility is to setup redirects for paths like that. | Anyone done this before. No I haven't, but I've thought about doing it. I also need to find a way to handle old-school CGI scripts. (it's not a pressing need so I've put it off for now) -D -- Come to me, all you who are weary and burdened, and I will give you rest. Take my yoke upon you and learn from me, for I am gentle and humble in heart, and you will find rest for your souls. For my yoke is easy and my burden is light. Matthew 11:28-30 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
OK - I am not going to be running apache, so what I would like to do is to catch the URL somehow with a ~ in it and then rewrite inside Zope to the appropriate home page. I thought of 2 ways of doing it, one being to try and use the Set Access Rule - but I don't think that it does what I want. The other way I thought of doing it was to trap the error in standard_error_message Thanks for the advice so far, unfortunately we don't have apache running, and I can't have the users folders in the root of the website. Laurie -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of dman Sent: Friday, April 26, 2002 3:16 PM To: Zope Subject: Re: [Zope] ~homepages in Zope On Fri, Apr 26, 2002 at 02:49:50PM -0500, Laurie Nason wrote: | Hi all, | | Due to a problem involving a hacker and our web server, we are going to be | moving all of our users from Apache (~username) home pages into Zope - but | the problem is, how do I redirect any entries from the original ~username to | the new location, homes/username. I think that if you create folders in zope with names like /~username it would work transparently. The other possibility is to setup redirects for paths like that. | Anyone done this before. No I haven't, but I've thought about doing it. I also need to find a way to handle old-school CGI scripts. (it's not a pressing need so I've put it off for now) -D -- Come to me, all you who are weary and burdened, and I will give you rest. Take my yoke upon you and learn from me, for I am gentle and humble in heart, and you will find rest for your souls. For my yoke is easy and my burden is light. Matthew 11:28-30 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
since you said 'Due to a problem involving a hacker and our web server' you should have apache in front of zope ! Laurie Nason schrieb:
OK - I am not going to be running apache, so what I would like to do is to catch the URL somehow with a ~ in it and then rewrite inside Zope to the appropriate home page.
I thought of 2 ways of doing it, one being to try and use the Set Access Rule - but I don't think that it does what I want. The other way I thought of doing it was to trap the error in standard_error_message
Thanks for the advice so far, unfortunately we don't have apache running, and I can't have the users folders in the root of the website.
Laurie
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of dman Sent: Friday, April 26, 2002 3:16 PM To: Zope Subject: Re: [Zope] ~homepages in Zope
On Fri, Apr 26, 2002 at 02:49:50PM -0500, Laurie Nason wrote: | Hi all, | | Due to a problem involving a hacker and our web server, we are going to be | moving all of our users from Apache (~username) home pages into Zope - but | the problem is, how do I redirect any entries from the original ~username to | the new location, homes/username.
I think that if you create folders in zope with names like /~username it would work transparently.
The other possibility is to setup redirects for paths like that.
| Anyone done this before.
No I haven't, but I've thought about doing it. I also need to find a way to handle old-school CGI scripts. (it's not a pressing need so I've put it off for now)
-D
--
Come to me, all you who are weary and burdened, and I will give you rest. Take my yoke upon you and learn from me, for I am gentle and humble in heart, and you will find rest for your souls. For my yoke is easy and my burden is light. Matthew 11:28-30
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
_______________________________________________ Zope maillist - Zope@zope.org 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 )
participants (4)
-
Dirk Datzert -
dman -
Laurie Nason -
Matthew T. Kromer