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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -