Take the tour ×  This may be super easy so I apologize in
advance but my strengths are in coding.  Why can't I access my
localhost at localhost:8080? - works - doesn't work - doesn't
work  localhost - works localhost:80 - forwards to localhost and
works localhost:8080 - doesn't work  I am trying to adjust my
hosts/etc file to include  localhost  sandbox.dev    In turn I
would like to access my app at sandbox.dev:8080/test-file.php.
So far, I haven't been successful so any help would be
appreciated. Thanks.  share|improve this question Describing a
problem as "doesn't work" is not really very helpful. What
exactly happens when you try it? How far do you get? Do you get
an error message? –  David Schwartz Oct 26 '12 at 2:16 add
comment  closed as not a real question by MDMarra, EEAA, Ward,
John Gardeniers, Iain Oct 26 '12 at 8:15   1 Answer  up vote 1
down vote accepted  Your hosts file needs the first entry on
each line to be an ip address, like localhost sandbox.dev
share|improve this answer add comment