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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -