(Answer) (Category) Faq-O-Matic Faq-O-Matic : (Category) Administrators' Guide : (Category) Install :
Virtual Hosts
If, like me you set up FAQ-O-Matic on a machine and later decided to use virtuals you will find that the cache contains absolute URLs rather than relative ones (why?). To fix this you'll need to haul up the administration page, replacing the old name with the new one. You'll also need to delete all items in the cache (having made a backup of course) and then run the 'verify cache' task, which will recreate all the items using the hostname contained in the URL you used to access the administration page.
The configuration directives for apache follow (replacing 1.2.3.4 with your IP number and mydomain.com with your domain of course!). Don't worry about the cgi-bin - it's apparently global.
This will give you a 'nice' URL for FAQ-O-Matic like http://faq.mydomain.com, hopefully encouraging more people to refer to it.
NameVirtualHost 1.2.3.4 <VirtualHost 1.2.3.4>
    ServerAdmin webmaster@mydomain.com
    DocumentRoot /var/lib/fom/cache
    ServerName faq.mydomain.com
    ErrorLog /var/log/apache/faq.mydomain.com-error_log
    CustomLog /var/log/apache/faq.mydomain.com-access_log common
</VirtualHost>
[Append to This Answer]
Previous: (Answer) How do I run multiple FAQs with one installation?
Next: (Answer) How To Run FOM on Windows
This document is: http://www.jonh.net/cgi-bin/faqomatic/fom?file=1119
[Search] [Appearance]
This is a Faq-O-Matic 2.718d.
Hosted by SourceForge Logo and jonh.net.