LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 04-24-2004, 11:33 AM   #1
ph0ngwh0ng
LQ Newbie
 
Registered: Apr 2004
Location: QC, Canada
Distribution: Red Hat 9.0
Posts: 7

Rep: Reputation: 0
Problem accessing subdirs from doc root on Apache server


Hi!

I can't access subdirs from doc root on my newly installed Apache server. For example:

The document root is set to -
/usr/local/apache2/htdocs

Suppose I have a file index.html in
/usr/local/apache2/htdocs/foo

I can't access it via http : // 192.168.0.100 / foo / (Error 404)

I have no problem seeing http : // 192.168.0.100 / index.html though

I have installed Apache 2.0.49 with all default options and haven't changed a thing to httpd.conf

Any ideas?

EDIT: Oh and if anyone knows of good and detailed starter tutorials on configuring Apache servers, let me know please!

Last edited by ph0ngwh0ng; 04-24-2004 at 11:37 AM.
 
Old 04-24-2004, 11:44 AM   #2
alxd
LQ Newbie
 
Registered: Mar 2004
Location: Poland
Distribution: Mandrake 10.0
Posts: 7

Rep: Reputation: 0
Hi,

That is propably just an issue with file permissions. Generally /usr (and lower dirs) is only available for root.

So you need to change to superuser and inside the /usr/local/apache2/htdocs you need to do 'chmod -R 666 .' to allow read/write access for every user in a recursive mode (so all lower dirs will be also affected).

You can also look at 'man chmod' to change the above command to suit your needs.

Take care,
Alex
 
Old 04-24-2004, 11:51 AM   #3
ph0ngwh0ng
LQ Newbie
 
Registered: Apr 2004
Location: QC, Canada
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
mmm nope. doesnt work.
 
Old 04-24-2004, 11:54 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
Add index.html as a valid default index page type. Its probably set to just index.htm currently.
 
Old 04-24-2004, 12:02 PM   #5
ph0ngwh0ng
LQ Newbie
 
Registered: Apr 2004
Location: QC, Canada
Distribution: Red Hat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
It is:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing remote Linux server via FTP as root user jbsarma Linux - General 4 11-24-2005 03:33 AM
A question on Apache accessing root files narc Suse/Novell 3 05-01-2005 10:25 AM
Apache, same ip two doc root, two ports and a tunnel korozion Linux - Software 1 03-15-2005 05:29 PM
Accessing Apache server from internet wisdom Linux - Networking 3 12-22-2004 11:05 AM
subdirs stopped working (apache) herc Linux - Software 0 09-24-2003 06:48 AM


All times are GMT -5. The time now is 02:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration