LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I can't get my Website to work on my local intranet. (https://www.linuxquestions.org/questions/linux-newbie-8/i-cant-get-my-website-to-work-on-my-local-intranet-103132/)

tivoli pete 10-12-2003 02:35 PM

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:

trickykid 10-12-2003 02:38 PM

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?

tivoli pete 10-12-2003 04:05 PM

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:

coldy 10-12-2003 04:45 PM

http://127.0.0.1 not http://127.0.0.0 ;)

this is your loopback address

tivoli pete 10-12-2003 04:50 PM

Loopback address
 
Yes, sorry, that was a typo - whoops!

It gives the same response - "Connection refused"

Tivoli Pete

coldy 10-12-2003 05:09 PM

Ok, look what trickykid ask you, and look is the server already runing

tivoli pete 10-13-2003 01:41 AM

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:

coldy 10-13-2003 08:06 AM

yes, you must restart apache to apply new settings. To restart it type
Code:

# service httpd restart
when you run
Code:

# service httpd
you'll see available options about this service

trickykid 10-13-2003 09:44 AM

Also make sure you have read rights on the files your trying to access, say for instance, your index file??

chmod 644 index.html

tivoli pete 10-13-2003 03:23 PM

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.