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

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -