LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache : localhost/ works localhost/index.html does not (https://www.linuxquestions.org/questions/linux-server-73/apache-localhost-works-localhost-index-html-does-not-555742/)

PhilA 05-22-2007 03:25 AM

apache : localhost/ works localhost/index.html does not
 
I would be very grateful for some help with an issue I have with a SUSE 10.2 web server (using apache and samba) I'm trying to set up on a windows network. The is my first attempt at this so if you know the answer please explain clearly.

The problem is that if a browse http://localhost/ I get the usual message "It works!" on the index.html page, but when I try browsing http://localhost/index.html I get an "unable to connect message" in firefox. I also have swat running on this server which runs ok (localhost:901/).

I can't browse the page from another machine on the network either.

I did have this working before, but it seemed to go wrong after I created a share in samba to srv/www/ and changed the permissions on the www and htdocs folders so other users on the network could add/edit/delete files in these areas... This may have someting to do with it but I'm unable to work that out at the moment. I've tried various adjustments.

:Pengy:

kstan 05-22-2007 04:31 AM

I believe your srv/www folder permission have something wrong,
u can see the msg probably because of your browser cache the content, so when u change to http://localhost/index.html it give you trouble.
make sure anonymous have permission.

PhilA 05-22-2007 06:11 AM

Thanks for the speedy response.

You're correct that the page had been cached.. now I've cleared the cache and I receive the same error when just browsing localhost.

I'm now trying to correct the permissions on the www folder. I'm not used to using the command line so i'm just right clicking on the folder to get the properties and going to the permissions tab and trying to find a 'group' called 'anonymous' in the list but there isn't one.

Any ideas?

***edited***

I've managed to resolve my problem, but I'm too embaressed to admit what the problem was :-) (it wasn't permissions). Thanks very much for the help!

funky86 05-27-2007 03:35 PM

Hello!

I found this thread per google. Actually I installed apache with wamp5 (wampserver) ver. 1.7.1 on my Windows XP sp2 corporated system. When I'm trying to reach http://localhost in my mozilla firefox browser, I can't. Like it's loading all the time and no error message is shown.

Any sugestions :confused: ?

Thanks ;)

kstan 05-27-2007 07:32 PM

Quote:

Originally Posted by PhilA
I've managed to resolve my problem, but I'm too embaressed to admit what the problem was :-) (it wasn't permissions). Thanks very much for the help!

I believe it's because of permission, all webpage must everybody readable (linux divide permission to 3 group of user, owner, group,and others). You need to set other can read.

Ks


All times are GMT -5. The time now is 01:16 PM.