30.8. Make Apache aware Faq-O-Matic file's location

Once Faq-O-Matic has been installed in the system, we must add the following lines to the httpd.conf file of Apache to be able to locate and use it's features.

  1. Edit the httpd.conf file, vi /etc/httpd/conf/httpd.conf and add the following lines between the section tags <IfModule mod_alias.c> and </IfModule>:
    
            Alias /faqomatic/ "/home/httpd/faqomatic/"
                <Directory "/home/httpd/faqomatic">
                Options None
                AllowOverride None
                Order allow,deny
                Allow from all
                </Directory>
    
                Alias /bags/ "/home/httpd/faqomatic/bags/"
                <Directory "/home/httpd/faqomatic/bags">
                Options None
                AllowOverride None
                Order allow,deny
                Allow from all
                </Directory>
    
                Alias /cache/ "/home/httpd/faqomatic/cache/"
                <Directory "/home/httpd/faqomatic/cache">
                Options None
                AllowOverride None
                Order allow,deny
                Allow from all
                </Directory>
    
                Alias /item/ "/home/httpd/faqomatic/item/"
                <Directory "/home/httpd/faqomatic/item">
                Options None
                AllowOverride None
                Order allow,deny
                Allow from all
                </Directory>
              

  2. Don't forget to restart your Apache web server once you have added the above lines to its httpd.conf file:
    
            [root@deep ] /# /etc/rc.d/init.d/httpd restart
              
    
            Shutting down http:                                        	[  OK  ]
                Starting httpd:                                            	[  OK  ]