LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 2018 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
Advertisement
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
Open Source Consulting | Domain Registration