如何對 Apache 中的目錄進行例外處理?

如何對 Apache 中的目錄進行例外處理?

我有VirtualHost一份http://wiki.example.com多庫維基):

<VirtualHost *:80>
ServerName wiki.example.com
DocumentRoot /var/www/dokuwiki

# some access restrictions on directories
</virtualHost>

我應該如何配置我的伺服器以便/var/www/otherURL 提供的內容http://wiki.example.com/other?在上面的設定中,dokuwiki 透過內部重寫機制處理 URL,並使其指向由其引擎處理的新(空)頁面。

我意識到我可以創建一個新的VirtualHost,但這不是一個立即的選擇(我必須保留主機名稱wiki.example.com

答案1

查看別名命令:

Alias /other /var/www/other

相關內容