Have you tried this? I added my project to a URL that you are also connecting to.
<Proxy *> Order deny,allow Allow from all </Proxy> ProxyRequests On ProxyPass /my-project/ http://127.0.0.1:18731/my-project/ retry=0 ProxyPassReverse /my-project/ http://127.0.0.1:18731/my-project/ retry=0 ProxyPreserveHost On ProxyErrorOverride Off
I usually use nginx for this kind of thing, so I'm not sure if this will work or not.
Update : the above does not work, so try something else.
Try something similar and see if that helps. This is a little different. It proxies everything except the media, which is served through an alias. This eliminates the need to have / my-project / in general.
<VirtualHost *:80> ServerName example.com UseCanonicalName On ServerAdmin webmaster@localhost LogLevel warn CustomLog /var/log/apache2/example.com/access.log combined ErrorLog /var/log/apache2/example.com/error.log ServerSignature On Alias /media/ /home/example/example.com/pysrc/project/media/ ProxyPass /media/ ! ProxyPass / http://127.0.0.1:18731/ ProxyPassReverse / http://127.0.0.1:18731/ ProxyPreserveHost On ProxyErrorOverride Off </VirtualHost>
Ken cochrane
source share