我無法獲取AEM的分派器模塊上的重寫工作。 以下是做什麼用我的配置發生了:帶重寫規則的AEM分派器虛擬主機設置不起作用
Dispatcher配置:
我的httpd.conf的片段現在
LoadModule dispatcher_module modules/mod_dispatcher.so
<IfModule disp_apache2.c>
DispatcherConfig conf/dispatcher.any
DispatcherLog logs/dispatcher.log
DispatcherLogLevel 3
DispatcherNoServerHeader 0
DispatcherDeclineRoot 0
DispatcherUseProcessedURL 0
DispatcherPassError 0
</IfModule>
<VirtualHost *:80>
ServerName mobile.example.com.au
DocumentRoot "/var/www/html/content/mobile"
RewriteEngine on
RewriteRule ^/(.*)\.html$ /content/mobile/$1.html [PT]
<Directory "/var/www/html/content/mobile">
<IfModule disp_apache2.c>
SetHandler dispatcher-handler
ModMimeUsePathInfo On
</IfModule>
Options FollowSymLinks
AllowOverride None
# AddType text/html .html
# AddOutputFilter INCLUDES .html
# Options +Includes
</Directory>
</VirtualHost>
......
,如果我嘗試訪問mobile.example.com.au /home.html,它顯示了這個404,並說沒有內容:
未找到
請求的URL /content/mobile/home.html在此服務器上找不到 。
雖然我能夠直接使用的完整路徑命中頁: http://mobile.example.com.au/content/mobile/home.html和頁面呈現。
缺少什麼我在這裏?這與文檔根目錄有關嗎?
此外,我們如何設置mobile.example.com.au的默認登錄頁面以顯示home.html。
另外,請檢查您是否已經在的httpd的conf啓用重寫模塊:) –