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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -