[Xapian-discuss] Pretty URLs for omega?
James Aylett
james-xapian at tartarus.org
Mon Apr 11 13:50:32 BST 2011
On 11 Apr 2011, at 10:21, <xapian at catcons.co.uk> <xapian at catcons.co.uk> wrote:
> Almost there.
This is now almost entirely not a Xapian issue, so I suggest if you continue to need help you turn to apache-related lists.
> Your suggestions focussed my Apache research. Using a Redirect directive
> with Apache 2.2.16, the user friendly http://<host_ID>/search now takes the
> user to http://<host_ID>/cgi-bin/omega?DB=<database_ID>. In case the
> details are useful to anyone here's the actual Apache configuration file
[snip]
That's helpful — it would be good if you could drop this into a brief write-up on our wiki, so others can find it easily in future.
> That's perfect for the live system. For the development system we need to
> use a port-based virtual host. It has to be port-based because there is no
> local name resolution so the virtual hosts must be IP-based.
You can use /etc/hosts for this (or similar under Windows).
> The
> development system works fine when accessed as
> http://192.168.168.51/cgi-bin/omega?DB=docoll_dev&:8080 but I haven't been
> able to set up a Redirect for http://<host_ID>/search_dev.
That's not how port specifications work in URLs. You mean:
> http://192.168.168.51:8080/cgi-bin/omega?DB=docoll_dev
However you can't do this with a redirect from an apache running port 80. Instead, look into the proxy and proxy_http modules, which will do what you need.
James
--
James Aylett
talktorex.co.uk - xapian.org - devfort.com
More information about the Xapian-discuss
mailing list