configuring devpi-server behind apache

Hi all, I'm trying to configure devpi-server behind apache but I'm having some trouble. The devpi-server URL is http://example.com/devpi/ practicum2$ devpi use current devpi index: http://example.com/devpi/alex/prod/ (logged in as alex) ~/.pydistutils.cfg : http://example.com/devpi/alex/prod/+simple/ ~/.pip/pip.conf : http://example.com/devpi/alex/prod/+simple/ ~/.buildout/default.cfg: no index server configured always-set-cfg: no I can install and upload packages from/to my indexes, but: practicum2$ devpi list dja.views alex/prod/+f/301f72b5408dec514036f2ae6d25cbdb/dja.views-0.1dev-r486.tar.gz WARN: devpi-client-1.2.2 got an unversioned reply, assuming API-VERSION 1 (as implemented by devpi-server-1.1 and 1.2) GET http://example.com/alex/prod/+f/301f72b5408dec514036f2ae6d25cbdb/dja.views-0... 404 Not Found Here the URL seems wrong, the 'devpi' part is missing. The command I use to start devpi-server is: /opt/pyvenv/devpi-server/bin/python /opt/pyvenv/devpi-server/bin/devpi-server --host localhost --port 3141 --serverdir /home/alex/espai/devpi/cache --outside-url http://example.com/devpi/ devpi server and client 1.2.2 The apache config: RewriteRule ^/devpi$ /devpi/ [R] RewriteRule ^/devpi/(.*) http://localhost:3141/$1 [proxy] Any clue on what I'm doing wrong. Thanks in advance

El 05/06/14 20:40, Alexis Roda ha escrit:
The devpi-server URL is http://example.com/devpi/ [...] GET http://example.com/alex/prod/+f/301f72b...
404 Not Found
Here the URL seems wrong, the 'devpi' part is missing.
I've got some clues: devpy/list_remove.py def query_file_status(hub, origin): ... res = hub.http_api("get", URL(rooturl, "/" + origin).url, quiet=True) adding a leading slash to "origin" makes it absolute, discarding the path part from "rooturl":
urljoin("http://example.com/devpi/", "/alex/prod/whatever") 'http://example.com/alex/prod/whatever' urljoin("http://example.com/devpi/", "alex/prod/whatever") 'http://example.com/devpi/alex/prod/whatever'
Still not sure if this is a problem with my apache setup ("origin" should include the "devpi" part?) or a bug in devpi. Regards
participants (1)
-
Alexis Roda