For example if following configuration is used
DocumentRoot /var/www/html/
ProxyPass / ajp://10.231.40.6:8009/
ProxyPassReverse / ajp://10.231.40.6:8009/
The content in /var/www/html/ will not be served by appache.
RewriteRule is the way to solve this.
DocumentRoot /var/www/html/
RewriteEngine on
rewriterule ^/blog - [L]
rewriterule ^/(.*) ajp://10.231.40.6:8009/$1 [P,L]
When the configuration is changed as shown in the above example the content in the folder /var/www/html/blog will be accessible with a URL like http://domain/blog
1 comment:
ProxyPass /blog !
ProxyPass / ajp://10.231.40.6:8009/
ProxyPassReverse / ajp://10.231.40.6:8009/
Post a Comment