Business & Finance1 min ago
Apache Webserver problem
I formatted my PC the other day, to wipe it of viruses and to make it so programs didn't hate me (namely mySQL and Apache - neither would 'work' before).
mySQL is being brilliant , works perfectly now. Apache actually runs without an error now, but I've come across another problem.
I have a page in the htdocs folder, and an image in htdocs/images .
When II visit http://127.0.0.1 (or http://localhost ) , I see the site, I see the image. Excellent! I can view my own site on my own PC! (Hmm.. :/)
Also, when I type in my Network-assigned IP - 192.168.0.2 , the site loads.
When I type in my "real" IP, I don't see the site. Using firefox, I get the "The document contains no data" message. When I use ikky IE, I get 404 - This page cannot be displayed.
I haven't played around with the conf file at all.
Here are the acces and error log's when I connect from http://localhost , then http://192.168.0.2 , and then my real ip.
== Access Log ==
127.0.0.1 - - [19/Dec/2004:15:11:12 +0000] "GET / HTTP/1.1" 304 -
127.0.0.1 - - [19/Dec/2004:15:11:12 +0000] "GET /smiley.bmp HTTP/1.1" 304 -
192.168.0.2 - - [19/Dec/2004:15:11:18 +0000] "GET / HTTP/1.1" 200 621
192.168.0.2 - - [19/Dec/2004:15:11:18 +0000] "GET /smiley.bmp HTTP/1.1" 304 -
192.168.0.2 - - [19/Dec/2004:15:11:18 +0000] "GET /favicon.ico HTTP/1.1" 200 1078
== ==
== Error Log ==
== ==
Any ideas? I'm stumped!
Thanks all,
Imagine
Answers
No best answer has yet been selected by Imagine. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Thanks for the reply Bonio.
I tinkered around with Apache a bit, and I can now see my site on the following:
http://localhost
http://127.0.0.1
http://80.3.0.42 (IP)
http://totaljunk.servebeer.com (no-ip assigned address)
However, read that statement literally. I can now see my site on the following. Everybody else gets the url could not be found on the server.
Apache is responding, therefore it should work. index.htm is set to be the 'default' page, along with index.html (both are in htdocs, just in case). Also, whenever someone types in a specific url - for example, http://totaljunk.servebeer.com/index_files/image003.gif , the URL cannot be found.
Any ideas? Thanks ;)
Imagine
DNS is working fine by the looks of it. I'm not too familiar with apache settings (it works out of the box on a DMZ server for me) but it does sound like a hostname settings somewhere. Maybe a host header setting.
Have a look here :
http://httpd.apache.org/docs/bind.html
and here :
http://httpd.apache.org/docs/vhosts/
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.