LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices

Rate this Entry

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.
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>
It can be used with the default /etc/httpd/httpd.conf by adding the following line at the end of /etc/httpd/httpd.conf
Code:
Include /etc/httpd/omega.conf
The Xapian Omega omega CGI executable must be available in the default cgi-bin directory which can be done by smlinking
Code:
ln -s /usr/lib64/xapian-omega/bin/omega /srv/httpd/cgi-bin/omega
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
Posted in Uncategorized
Views 1105 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:28 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration