About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:using_vufind_as_the_site_root

This is an old revision of the document!


Using VuFind as the Site Root

By default, VuFind is configured to reside within a directory of your website. However, if you want to configure VuFind to load at the root of your domain, follow these steps:

  • In the [Site] section of local/config/vufind/config.ini, set the “url” setting to “http://yourdomain.edu” (obviously replacing this with your real domain name).
  • In httpd-vufind.conf, make the following changes:
    • In the AliasMatch lines at the top, change “AliasMatch ^/vufind2/themes/…” to “AliasMatch ^/themes/…”.
    • Remove the Alias line under “Configuration for general VuFind base”.
    • In VuFind 2.5 and earlier, RewriteBase should be /; in later versions which use a <Location> directive instead of a RewriteBase, this should read <Location />.
  • You may need to create a virtual host in Apache to complement httpd-vufind.conf which uses your VuFind public directory as its DocumentRoot. For example:
NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot /usr/local/vufind2/public
    ServerName yourdomain.edu
    ServerAlias www.yourdomain.edu
</VirtualHost>
configuration/using_vufind_as_the_site_root.1545239261.txt.gz · Last modified: 2018/12/19 17:07 by demiankatz