編輯文件:
/etc/httpd/conf.d/extjs.conf
內容如下:
Alias /extjs "/point/to/real/dir/ext/"
<Directory "/point/to/real/dir/ext/">
Options Indexes
AllowOverride AuthConfig Options
Order allow,deny
Allow from all
</Directory>
<Directory "/point/to/real/dir/ext/">
Options Indexes
AllowOverride AuthConfig Options
Order allow,deny
Allow from all
</Directory>
重啟httpd:
service httpd restart
這樣訪問http://hostip/extjs/docs/index.html就能在本地看EXTJS的文檔了。
注,經下面同學回復,有不用架設服務器的辦法,我搜了一下,供大家參考,本人未嘗試:
http://www.aygfsteel.com/mengyuan760/archive/2008/04/21/194510.html