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 -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -