virtualhost - Must Apache virtual hosts be used when developing on localhost? -


my document root default /var/www/html. if create subdirectories inside html/ directory:

html/     example/     dev/     test/ 

i seem have many sites can access in web browser:

localhost/example localhost/dev localhost/test 

considering above, setting apache virtual hosts seems unnecessary. should use apache virtual hosts when developing on localhost? please why in answers provide.

thanks in advance.

i use virtual hosts development because prevents unintended cross contamination (i.e. using image etc belongs on site).

but opinion.

also separates work better.


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? -

ruby on rails - Seeing duplicate requests handled with Unicorn -