Objet : Re: [Zope] Setting SERVER_NAME for ZServer
Ok, but how ?
Michel Pelletier <michel@digicool.com> 08/11/99 18:01:00 >>> Itamar Shtull-Trauring wrote:
How do I set the internal server name for ZServer? Right now it's taking one from the hostname, which in this case is wrong (virtual hosting) and causes problems.
ZServer currently isn't smart enough, you would need to patch it. -Michel _______________________________________________ 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 )
The ZServer SERVER_NAME can be set by editing ZServer/medusa/http_server.py, and adding server.server_name = "www.example.com" at line 554, right before server_port is set but after the unwanted server_name is set, so the new value replaces the unwanted one. -- Itamar - itamars@ibm.net ---------------------------o----------------------------------------------o Perl/Gimp Greeting Cards | Trust? Ha! The US dollar is backed by ICBMs! | http://www.sealingwax.com | --Anonymous Coward, Slashdot |
participants (2)
-
Francois-Regis CHALAOUX -
Itamar Shtull-Trauring