[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Virtual
Hosting Services
webmaster at zope.org
webmaster at zope.org
Sat Mar 27 03:55:59 EST 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.stx#4-26
---------------
Now, assuming you've got Apache running on port 80 and Zope
running on port 8080 on your local machine, and assuming
that you want to serve the folder named 'vhm_test' in Zope
as 'www.example.com' and, add the following to your Apache's
'httpd.conf' file and restart your Apache process::
NameVirtualHost *
<VirtualHost *>
ServerName www.example.com
RewriteEngine On
RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/www.example.com:80/vhm_test/VirtualHostRoot/$1 [L,P]
</VirtualHost>
% Anonymous User - Nov. 9, 2003 7:35 pm:
How about some artificial line breaks in here? On a 12-inch iBook this page is about 40% wider than the
display, requiring much side-scrolling that reminds me of Donkey Kong on the Nintendo....
% Anonymous User - Feb. 16, 2004 11:40 pm:
Really? It's not a problem on a 23-inch Apple Cinema Display :)
% Anonymous User - Mar. 14, 2004 5:00 am:
If you are using https (with Apache listening on port 443) you should add to the VirtualHost definition:
SSLProxyEngine on.
So the Apache Virtual Host section becomes:
NameVirtualHost *:443
<VirtualHost *:443>
ServerName www.example.com
SSLProxyEngine on
RewriteEngine On
RewriteRule ^/(.*)
http://127.0.0.1:8080/VirtualHostBase/https/www.example.com:443/vhm_test/VirtualHostRoot/$1 [L,P]
</VirtualHost>
% Chirael - Mar. 27, 2004 3:55 am:
Actually, instead of artificial line breaks, shouldn't there be a note about that long line needs to stay as
one long line?
More information about the ZDP
mailing list