We are running zope together with apache and via rewriterules we have gotten rid of the need to write ":8080" in the url, now the problem is that links created with absolute_url() gives the link like this: http://www.localhost.com:8080/webpages/index_html what i want, is it to make this: (ie without the portnumber) http://www.localhost.com/webpages/index_html I have a feeling i may accomplish this with virtual hostmonster, but do not know how. Any help and examples will be greately appreciated. Einar -- Einar Næss Jensen Avdelingsingeniør EDB-HF 735 90750
Just change the port number through your start-up options (documented in z2.py) or change the port number directly in z2.py cb ----- Original Message ----- From: "Einar Næss Jensen" <einar.ness.jensen@hf.ntnu.no> To: <zope@zope.org> Sent: Wednesday, February 19, 2003 11:49 AM Subject: [Zope] how to remove :8080? We are running zope together with apache and via rewriterules we have gotten rid of the need to write ":8080" in the url, now the problem is that links created with absolute_url() gives the link like this: http://www.localhost.com:8080/webpages/index_html what i want, is it to make this: (ie without the portnumber) http://www.localhost.com/webpages/index_html I have a feeling i may accomplish this with virtual hostmonster, but do not know how. Any help and examples will be greately appreciated. Einar -- Einar Næss Jensen Avdelingsingeniør EDB-HF 735 90750 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Cornelis J. de Brabander wrote:
Just change the port number through your start-up options (documented in z2.py) or change the port number directly in z2.py cb
I don't think it's what he wants. I think he should use a "virtual host monter" or a similar zope product to rewrite zope urls (as long as he wants to keep apache of course) hth Philippe
----- Original Message ----- From: "Einar Næss Jensen" <einar.ness.jensen@hf.ntnu.no> To: <zope@zope.org> Sent: Wednesday, February 19, 2003 11:49 AM Subject: [Zope] how to remove :8080?
We are running zope together with apache and via rewriterules we have gotten rid of the need to write ":8080" in the url,
now the problem is that links created with absolute_url() gives the link like this:
http://www.localhost.com:8080/webpages/index_html
what i want, is it to make this: (ie without the portnumber) http://www.localhost.com/webpages/index_html
I have a feeling i may accomplish this with virtual hostmonster, but do not know how. Any help and examples will be greately appreciated.
Einar -- Einar Næss Jensen Avdelingsingeniør EDB-HF 735 90750
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Einar Næss Jensen wrote at 2003-2-19 11:49 +0100:
We are running zope together with apache and via rewriterules we have gotten rid of the need to write ":8080" in the url,
now the problem is that links created with absolute_url() gives the link like this:
http://www.localhost.com:8080/webpages/index_html
what i want, is it to make this: (ie without the portnumber) http://www.localhost.com/webpages/index_html
Look at VHM (Virtual Host Monster). Instantiate such an object (in your root folder) and read its documentation tab. Dieter
If you wish to remove :8080 without using VHM, absolute_url(1) will give you a relative url (i.e. webpages/index_html instead of http://localhost.com:8080/webpages/index_html). Just remember to add the leading slash to make the path absolute. This works, for example, in generating breadcrumbs and a site map automatically via python scripts. See page http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx (listed under module ObjectManagerItem) for usage. Since absolute_url(1) will not work for search results, you must use the getpath() method to return relative urls in ZCatalog search results. See page http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx (listed under module ZCatalog) for usage. - Kamal On Wednesday, February 19, 2003, at 02:49 AM, Einar Næss Jensen wrote:
We are running zope together with apache and via rewriterules we have gotten rid of the need to write ":8080" in the url,
now the problem is that links created with absolute_url() gives the link like this:
http://www.localhost.com:8080/webpages/index_html
what i want, is it to make this: (ie without the portnumber) http://www.localhost.com/webpages/index_html
I have a feeling i may accomplish this with virtual hostmonster, but do not know how. Any help and examples will be greately appreciated.
Einar -- Einar Næss Jensen Avdelingsingeniør EDB-HF 735 90750
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Cornelis J. de Brabander -
Dieter Maurer -
Einar Næss Jensen -
Kamal Gill -
Philippe Jadin