Apache rewrite rules in both config and .htaccess -


i have cakephp application hosted in virtual host (apache 2.4) works ok. in internal network virtual host name cannot routed have use web server ip. , since server hosts multiple applications have set alias in config file:

alias /abc "/var/www/cake/audio/webroot" <directory "/var/www/cake/audio"> options +followsymlinks -multiviews require granted allowoverride rewritebase /abc </directory> 

the problem specifying allowoverride all, rewritebase in .htaccess defaults / overrides config file.

how can make rewritebase equal / when accessed using virtual host , rewritebase equal /abc when access using ip?


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -