|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2004
/
2004-02
/
Zope https absolute_url problem
[
Pound-Current Timing Out? / "Joel ... ]
[
Re: Pound compiled for windows / Roland ... ]
Zope https absolute_url problem
"Steven Smith" <StSmith(at)spsmw.org> |
2004-02-18 23:56:38 |
[ FULL ]
|
I just installed Pound in front of our Plone 1.0 (Zope) site. The
problem is that when I go to pages using https: I don't get all the
items on the pages throught https. Basically anything that would
normally be a linked in page or image doesn't show up.
Everything is coming back with link to "http" instead of "https".
Looking like:
http://website.org:443/image1.jpg
***********
This is some code from home page linking in image.
<td width="140" valign="top" tal:define="img
nocall:here/images/contribute/oca/phonathonsmall.jpg">
<img src="" tal:attributes="src img/absolute_url; width
img/width; height img/height; alt img/title_or_id;"/>
</td>
I think my problem must be something to do with absolute_url, but not
sure what I need to start changing in Zope/Plone to fix the issue.
PLEASE if you know of way to fix this let me know what to do.
Thanks,
Steven Smith
|
|
|
Re: Zope https absolute_url problem
Robert Segall <roseg(at)apsis.ch> |
2004-02-19 14:33:27 |
[ FULL ]
|
On Wed, 2004-02-18 at 23:56, Steven Smith wrote:[...]
Have you applied the HTTPS patch that comes with Pound? It is designed
precisely to solve this problem.
If you use Zope 2.7 you may have an easier solution via zopectl - search
the Zope mailing list archive.[...]
|
|
|
Re: Zope https absolute_url problem
Thomas Anderson <tn-anderson(at)comcast.net> |
2004-02-19 18:32:10 |
[ FULL ]
|
In Zope 2.6.3 I found that the patch needed some work.
See: http://mail.zope.org/pipermail/zope/2004-February/146619.html
for an updated patch.
In Zope 2.7.0 all I needed to do is add:
<cgi-environment>
HTTPS ON
</cgi-environment>
to instance_home/etc/zope.conf
On Wed, 2004-02-18 at 17:56, Steven Smith wrote:[...]
|
|
|
Re: Zope https absolute_url problem
"Steven Smith" <stsmith(at)spsmw.org> |
2004-02-20 06:11:32 |
[ FULL ]
|
I have used the Z2.2.5.1.py file included with Pound. However it didn't
seem to work correctly as it was with Zope/Plone 1.0.5. So I made
changes to adjust the http and https start to look like the Z2.py that
came with the Plone install. I'll attache file, I hope this ok with
list.
Thanks,
Steven
>>> Robert Segall <roseg(at)apsis.ch> 02/19/04 8:33 AM
>>>
On Wed, 2004-02-18 at 23:56, Steven Smith wrote:[...]
Have you applied the HTTPS patch that comes with Pound? It is designed
precisely to solve this problem.
If you use Zope 2.7 you may have an easier solution via zopectl - search
the Zope mailing list archive.[...]
|
|
|
Re: Zope https absolute_url problem
Robert Segall <roseg(at)apsis.ch> |
2004-02-20 12:56:07 |
[ FULL ]
|
On Fri, 2004-02-20 at 06:11, Steven Smith wrote:[...]
The distribution includes two patches, one for Zope 2.5.x and one for
Zope 2.6.x. Use the one that fits your Zope version - Plone is
irrelevant here. For 2.7.x use Thomas Anderson's fix via zope.conf.
Having done that MAKE SURE YOU USE IT: add the (new) -y flag to pass
your HTTPS requests to the right port. Read the README included in the
distribution for full details - it contains an entire section about Zope
and HTTPS.
Finally, in the interest of saving some bandwidth, please refrain from
big attachments: I'm not sure how many people are interested in Zope
patches, and I'm sure you could mail them directly. This goes for
everybody who wants to send large attachments - such as the recently
posted Win32 binary![...]
|
|
|
Re: Zope https absolute_url problem
"Steven Smith" <StSmith(at)spsmw.org> |
2004-02-25 05:31:46 |
[ FULL ]
|
Still having problems.
Ok I found out I was using the wrong Z2 file, however I have changed
the correct Z2.2.6.1.py file and started ZOPE using that file. I pass
the following flags in the batch script I use to start ZOPE. (NOTE:
Z2.pound.py is copy of Z2.2.6.1.py provided with pound.)
"D:\Plone-1.0\Python\python.exe" "D:\Plone-1.0\Zope\z2.pound.py" -D
-f21 -W9800 -w127.0.0.1:8080 -y127.0.0.1:8443
INSTANCE_HOME="D:\Plone-1.0\Data"
I did have to change the following lines in Z2.pound.py, because the
Plone installer puts lib/win32 under a Python directory instead of bin.
sys.path.insert(1, '%s/Python/lib' % swhome)
sys.path.insert(2, '%s/Python/lib/plat-win' % swhome)
sys.path.insert(3, '%s/Python/lib/win32' % swhome)
sys.path.insert(4, '%s/Python/lib/win32/lib' % swhome)
I'm still having problems getting the HTTPS to work. I usually get the
page I want returned, but any links on page are still
HTTP://myserver.com:443/ instead of HTTPS.
Lastly, I found the following link on ZOPE mailing list.
http://mail.zope.org/pipermail/zope/2004-February/146641.html
It mentions to use pound-current instead of pound 1.6. I know I'm only
using pound 1.5 (someone was kind enough to give me precompiled binary
for windows). Should I try compiling a new pound for windows, using the
pound-current? I didn't think this was reported as a bug in earlier
versions?
If anyone does have a precompiled windows pound-current please email me
directly? (Would save me many hours of grive, becuase I don't have
compiler for windows.)
Thanks,
Steven Smith
>>> Robert Segall <roseg(at)apsis.ch> 2/20/2004 6:56:07 AM
>>>
On Fri, 2004-02-20 at 06:11, Steven Smith wrote:[...]
didn't[...]
that[...]
The distribution includes two patches, one for Zope 2.5.x and one for
Zope 2.6.x. Use the one that fits your Zope version - Plone is
irrelevant here. For 2.7.x use Thomas Anderson's fix via zope.conf.
Having done that MAKE SURE YOU USE IT: add the (new) -y flag to pass
your HTTPS requests to the right port. Read the README included in the
distribution for full details - it contains an entire section about
Zope
and HTTPS.
...[...]
|
|
|
|