21. 修改 Apache 的設定
Alias /xhgui /var/www/lib/xhprof/xhprof_html
<Directory /var/www/lib/xhprof/xhprof_html>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
上述範例僅提供本機 (127.0.0.1) 連結 xhprof,請
根據實際情況加上合適的 IP 位址。
重新啟動 Apache
service httpd restart