I can't get my Website to work on my local intranet.
:Pengy: I have set up a Linux server on my network, and I have Apache 2 installed, but when I try to access the default page using the localhost or its ip number, I just get page can't be found errors!
My distro' is RH 7.1 and initially, when I typed in the Linux server's hostname - I would get the info page, but not now. I have checked the httpd.conf, but can't see anything odd. Can anyone help? Thanks, Tivoli Pete. :confused: |
If you replaced the default "Its working" page with your own, did you make sure its readable by all, etc? Can you get the page on the actual server itself by typing in your localhost IP? http://127.0.0.1
And you don't have any firewalls setup or anything on this server? |
localhost does not work!
I have checked with http://127.0.0.0 and get a permission denied response. If I use localhost I get a message:
"The connection was refused when attempting to contact keyword.netscape.com" Things all went pear shape after a power cut a few months back! Tivoli Pete. :confused: |
|
Loopback address
Yes, sorry, that was a typo - whoops!
It gives the same response - "Connection refused" Tivoli Pete |
Ok, look what trickykid ask you, and look is the server already runing
|
This is where I look stupid!!
:Pengy: How do I stop and start the Web server? If I make a change to the httpd.conf file - do I then need to stop/start Apache to make the changes effective?
Tivoli Pete. :Pengy: |
yes, you must restart apache to apply new settings. To restart it type
Code:
# service httpd restart Code:
# service httpd |
Also make sure you have read rights on the files your trying to access, say for instance, your index file??
chmod 644 index.html |
Success!
:Pengy: Restarting Apache has cured the problem. I possibly applied the fix, but never activated it - boy do I feel dumb!!
Thanks everyone for your help! Tivoli Pete. :D |
All times are GMT -5. The time now is 09:04 PM. |