Apache configuration for Xapian Omega on Slackware 13.1
Posted 01-23-2012 at 10:09 AM by catkin
Here's an Apache configuration file for Xapian Omega on Slackware 13.1, to be saved as /etc/httpd/omega.conf
It was developed and tested on Slackware64 13.1 with Xapian Omega 1.2.8 installed by SlackBuild.
It can be used with the default /etc/httpd/httpd.conf by adding the following line at the end of /etc/httpd/httpd.conf
The Xapian Omega omega CGI executable must be available in the default cgi-bin directory which can be done by smlinking
Change lib64 to lib on 32-bit systems.
After Apache (httpd) has been restarted and Xapian Omega's omindex has been run to create a default text search database, the GUI can be accessed at http://<server ID>/omega
It was developed and tested on Slackware64 13.1 with Xapian Omega 1.2.8 installed by SlackBuild.
Code:
# Apache configuration file for Xapian Omega <Directory /srv/httpd/htdocs/omega> Allow from all DirectorySlash On Options FollowSymlinks Order Deny,Allow RewriteEngine On RewriteBase / RewriteRule ^/*$ /cgi-bin/omega/omega?DB=default&FMT=query [L] </Directory> <Directory /srv/httpd/cgi-bin> Allow from all DirectorySlash On Options FollowSymlinks Order Deny,Allow </Directory>
Code:
Include /etc/httpd/omega.conf
Code:
ln -s /usr/lib64/xapian-omega/bin/omega /srv/httpd/cgi-bin/omega
After Apache (httpd) has been restarted and Xapian Omega's omindex has been run to create a default text search database, the GUI can be accessed at http://<server ID>/omega
Total Comments 0