一旦 Faq-O-Matic 安装到系统中,我们必须将以下行添加到 Apache 的httpd.conf文件中,以便能够定位和使用它的功能。
编辑httpd.conf文件, vi/etc/httpd/conf/httpd.conf并在节标签 <IfModule mod_alias.c> 和 </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> |
添加上述行到 Apache 的httpd.conf文件后,别忘了重启 Apache Web 服务器
[root@deep ] /# /etc/rc.d/init.d/httpd restart |
Shutting down http: [ OK ] Starting httpd: [ OK ] |