I am having a odd error with Apache 2.4. I installed it, everything should be good, I start it, and I get a 404 error on localhost.I am new to all this, I am using the port 8080 but if I try localhost:8080 is still doesn't work. I don't have a clue as to what is wrong.

Okay, now I have another problem. So now I am trying to make it instead of localhost, mywebsite.localhost:8080, but it is not working. When I go into Cmd and try to view the errors in the C:\Apache24\bin and do httpd.exe, a windows popup appears and says Apache 24 has stoped working. Any ideas?

Christian, I was watching a helpful video that made it work with mywebsite.localhost.Pandy- I tried that all with vituralhost,i don't understand why it is not working.If you want to see the code, 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>

And then here is the line in the httpd.conf that I had to edit:

Include conf/extra/httpd-vhosts.confAlso, oddly enough, even when I stop apache localhost:8080 is still up, with "it works!"

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: