QUOTE(newwebdesigner @ Aug 19 2014, 05:25 PM)
here is a snipit because I know if I copied the whole httpd.conf and httpd-vhosts.conf it would be very long post.
<VirtualHost *:8080>
ServerAdmin webmaster@mywebsite.localdomain:8080
DocumentRoot "c:/Users/MyUser/mywebsite"
ServerName mywebsite.localdomain:8080
ErrorLog "logs/mywebsite.localdomain:8080-error.log"
CustomLog "logs/mywebsite.localdomain:8080-access.log" common
</VirtualHost>
Is the above from httpd.conf? I don't put my VirtualHost directives in there (on Apache 2.2), instead I put them in the httpd-vhosts.conf file:
CODE
<VirtualHost 127.0.0.1>
ServerName foo
ServerAdmin christianj@foo.com
DocumentRoot "C:/Users/christianj/Documents/foo/htdocs"
ScriptAlias /cgi-bin/ "C:/Users/christianj/Documents/foo/cgi-bin"
</VirtualHost>
(details may vary), combined with entries in Windows' hosts file at C:\Windows\System32\drivers\etc\hosts like these:
CODE
127.0.0.1 foo
127.0.0.1 bar
I haven't tried this for years, so don't rely too much on my "advice". No idea if it will work with the "foo.localhost" format.
QUOTE
Also, oddly enough, even when I stop apache localhost:8080 is still up, with "it works!"
Probably just a cached page in the browser.