Note that there are some explanatory texts on larger screens.

plurals
  1. POmod_wsgi + Zope2 + Plone + virtual hosting configuration
    primarykey
    data
    text
    <p>I have configured <strong>Plone</strong> with the following <strong>buildout</strong> (via <a href="http://build.pythonpackages.com/buildout/plone/4.2.x" rel="nofollow">http://build.pythonpackages.com/buildout/plone/4.2.x</a>):</p> <pre><code>[buildout] allow-hosts = *.plone.org *.python.org extensions = buildout.bootstrap extends = http://dist.plone.org/release/4.2b1/versions.cfg find-links = http://dist.plone.org/thirdparty/elementtree-1.2.7-20070827-preview.zip parts = mod-wsgi plone plone-mod-wsgi plone-paste versions = versions [mod-wsgi] recipe = collective.recipe.modwsgi eggs = ${plone:eggs} config-file = ${buildout:directory}/plone-mod-wsgi.ini [plone] recipe = plone.recipe.zope2instance eggs = PasteScript Pillow Plone WebError repoze.retry repoze.tm2 repoze.vhm products = user = admin:admin scripts = paster [plone-mod-wsgi] recipe = collective.recipe.template url = http://build.pythonpackages.com/buildout/plone/plone-mod-wsgi.ini.in output = ${buildout:directory}/plone-mod-wsgi.ini [plone-paste] recipe = collective.recipe.template url = http://build.pythonpackages.com/buildout/plone/plone-paste.ini.in output = ${buildout:directory}/plone-paste.ini [versions] distribute = 0.6.24 zc.buildout = 1.5.2 Zope2 = 2.13.11 </code></pre> <p>And Apache with the following config:</p> <pre><code>&lt;VirtualHost *:80&gt; … # Use only 1 Python sub-interpreter. Multiple sub-interpreters # play badly with C extensions. WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On WSGIDaemonProcess plone user=aclark group=staff processes=1 \ threads=4 \ python-path=/srv/aclark.net/eggs WSGIScriptAlias / /srv/aclark.net/parts/mod-wsgi/wsgi &lt;Directory /srv/aclark.net&gt; WSGIProcessGroup plone Order allow,deny Allow from all SetEnv HTTP_X_VHM_HOST http://aclark.net SetEnv HTTP_X_VHM_ROOT /Plone &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>My "declarative" <strong>WSGI</strong> configuration (called by <em>/srv/aclark.net/parts/mod-wsgi/wsgi</em>) looks like this:</p> <pre><code>[app:plone] use = egg:Zope2#main zope_conf = /srv/aclark.net/parts/plone/etc/zope.conf [pipeline:main] pipeline = egg:repoze.retry#retry egg:repoze.tm2#tm egg:repoze.vhm#vhm_xheaders plone # Begin logging configuration [loggers] keys = root [handlers] keys = console [formatters] keys = generic [logger_root] level = WARN handlers = console [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s # End logging configuration </code></pre> <p>This all partially works, by loading <a href="http://aclark.net/Plone" rel="nofollow">http://aclark.net/Plone</a> when you ask for <a href="http://aclark.net" rel="nofollow">http://aclark.net</a>. However <strong>Zope2</strong> is still generating URLs that begin with <a href="http://aclark.net/Plone" rel="nofollow">http://aclark.net/Plone</a>.</p> <p>Am I missing something? Or is this a <strong>Zope2</strong> bug (not doing the right thing when conifgured w/<strong>repoze.vhm</strong>)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload