Hello Team,
We just setup dispatcher in local Window 10 Machine.
Apache Version:
Dispatcher Module downloaded from Adobe download console.
Dispatcher setup is done successfully. Pages are getting cached/invalidate after replication.
1)Filter rules work fine as well.
2)This is Virtual Host:
When we try to hit http://vm.local/content/weretail/us/en.html. It works fine
3) Entry in host file:
127.0.0.1 localhost
127.0.0.1 vm.local
127.0.0.1 vm.locall
Only Problem is :
Below is the link for Apache file along with All Configured Dispatcher files.
https://github.com/digi108/aem-disp-window/blob/main/Apache2.2.zip
We are not able to make rewrite working. When we try to hit http://vm.local, It does not redirect at all and gives us 404.
Below is our rewrite rules:
Regards,
KTNR
Solved! Go to Solution.
Views
Replies
Total Likes
Hello All,
Thanks a lot for your support, Found root cause.
Under enabled_hosts, there were 2 different vhost taking priority before our real vhost. Now it is properly adjusted and fixed. Thanks.
@arvind have you enabled Mod_rewrite module in httpd.conf?
https://ubiq.co/tech-blog/how-to-enable-mod_rewrite-in-xampp-wamp/
Hi @Shashi_Mulugu ,
It is one of the first thing, I did during setup. Mod:rewrite is enabled already.
https://github.com/digi108/aem-disp-window/blob/main/Apache2.2.zip
Hi @arvind
In the above rules, i see the rewrite Rule is commented. did you try by uncommenting the rewrite rule?
RewriteEngine on RewriteRule "^/$" "/content/we-retail.html" [R]
Also you can check more rules here: https://httpd.apache.org/docs/2.4/rewrite/remapping.html
Hi Siva,
Thank you for kind reply. Other rules are not commented.
BTW, It seems flow does not come till this rewrite rules file somehow.
@kautuk_sahni , Any help/suggestion pls
Can you post your httpd conf which includes vhost file and vhost file where you included your rewrite file?
Dear @Shashi_Mulugu ,
This is the link:
https://github.com/digi108/aem-disp-window/blob/main/Apache2.2.zip
Regards,
KTNR
I saw your files, I think it is not even going to enabled vhost files and from there rewrite files..
It is picking up vhost conf from dispatchervhost itself, with 80 port
Try adding rewrite under it.
Hello All,
Thanks a lot for your support, Found root cause.
Under enabled_hosts, there were 2 different vhost taking priority before our real vhost. Now it is properly adjusted and fixed. Thanks.
Views
Likes
Replies