Apache Virtual Hosts direct IP Access -
i have various virtual hosts running. know people access these adding entry hosts file, possible access 1 specific virtual using ip + else?
e.g. http://<server_ip>
/<host>
/
try along line of:
<location /> <ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} ! -s [or] rewritecond %{request_filename} ! -l [or] rewritecond %{request_filename} ! -d rewriterule ^([^/)+(.*)$ /srv/http/$1/public/$2 [nc,l] </ifmodule> </location>
this placed in default virtualhost
Comments
Post a Comment