Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
navigating sub directories with apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Mon Sep 15, 2003 12:23 pm    Post subject: navigating sub directories with apache Reply with quote

I have a Directive setup in the httpd.conf file for a directory under 'htdocs' I would like to share OpenSource files from my web server... I can navigate to the root directory specified "/apache/htdocs/files/", but when I click on a sub folder underneath 'files' in my web browser it hangs. The user that starts Apache has full privileges on this directorie and subdirectories. Here is my Directive from the httpd.conf:
Code:

<Directory "/apache/htdocs/files/">

    Options Indexes FollowSymLinks MultiViews

    AllowOverride None

    Order deny,allow
    Allow from all

</Directory>


Is there a flaw in this?
_________________
only the paranoid survive
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Mon Sep 15, 2003 3:52 pm    Post subject: Reply with quote

Make sure that Others can rx the directory.
Code:
# chmod o+rx foo/
Back to top
View user's profile Send private message
telex4
l33t
l33t


Joined: 21 Sep 2002
Posts: 704
Location: Reading, UK

PostPosted: Mon Sep 15, 2003 4:54 pm    Post subject: Reply with quote

I'm having a similar problem; I get "301 Moved Permanently" errors when I try to list a directory's contents. I can download files within those directories fine, but I can't list them.

They're all chmod'ed to a+rx

The section from Apache's config looks like this:

Code:

<Directory /share>
        Options Indexes -FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        DirectoryIndex index.html index.htm index.shtml index.pl
</Directory>
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Mon Sep 15, 2003 10:49 pm    Post subject: Reply with quote

aha! fixed!!! :)

The problem was that my linux clients were trying to resolve the DNS name of the server out on the internet.. added my server's IP info to '/etc/hosts', and viola! I'm browsing my Web Server!

What gave it away was that I noticed in the browser status window it was saying 'Connecting to webserver.descent.org'... well, there happens to actually be a webserver.descent.org that does not respond on the obscure port that my webserver does!:o

Thanks for all your help!

EDIT:

BUT, this does bring up the question... what do I do with my clients out on the internet? I don't have DNS.. I connect to my server via IP Address.. how can I eliminate this? Is there some sort of Apache configuration I can use to keep clients from looking outside of my server (on the internet) for things?
_________________
only the paranoid survive
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Tue Sep 16, 2003 6:13 pm    Post subject: Reply with quote

well, I found a solution.... I set the external port number (firewall listening port) to the same as the internet port number, and setup a DynDNS account.. set the actual PC's hostname to the DynDNS DNS name, and works like a champ... :D :D :D
_________________
only the paranoid survive
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum