Forum Moderators: phranque
I'm trying to run Apache locally but haven't been able to do so. When I try to access http://localhost I do not get any error messages on my browser (IE and Netscape), instead it seems like the browser just hanged while the progress bar is halfway done. I checked the error log and the server seems to be running fine.
Here are the settings I have in my httpd.conf file:
ServerName localhost:80
Listen 80
I have no other web servers running, and I don't have firewall either. I have McCafee antivirus running but I'm not aware of it being a problem since I was able to successfully run IIS.
Any help you can give would be great.
[edited by: jdMorgan at 9:00 pm (utc) on Dec. 14, 2003]
[edit reason] De-linked [/edit]
Welcome to WebmasterWorld [webmasterworld.com]!
What happens if you request http://localhost/ instead?
Jim
Fwiw - I run that setup, and rather than localhost:80 I just have localhost.
I also have the following:
DocumentRoot "D:\server"
<Directory "D:/server">
For virtual hosts, I have the following setup:
NameVirtualHost *
<VirtualHost 127.0.0.2>
ServerName www.mysite.com
DocumentRoot "D:/server/mysite/site/"
</VirtualHost>
And my hosts file:
127.0.0.2 www.mysite.com
Not yer standard naming convention (sorry if that hurts the eyes jdmorgan!) but I ams a rookie!
HTH - mipapage
You can also set the information in the alias part, but your robots.txt won't be read.
As for MSIE, check that you do not work offline.
Netscape or Mozilla do not switch offline automatically.
Hope this will help
I'm actually getting an error message now when I try to access [localhost...] (same error as well when it's [localhost...] ).
Here's the error message:
500 Server error -
Server Error
The following error occurred:
Bad URL
--------------------------------------------------------------------------------
Please contact the administrator.
Oddly enough, I haven't change any of the settings in my httpd.conf file. Once again, I have the following setting:
ServerName localhost:80
Listen 80
DocumentRoot "E:/Paul/Apache2/htdocs"
<Directory "E:/Paul/Apache2/htdocs">
Any help is greatly appreciated.
Regards,
Paul
If you can access [127.0.0.1:80...] then that is your problem
I run XP Pro and apache with no such problems, I'm pretty sure it shouldn't read :80 unless you are running on another port such as localhost:2222