View previous topic :: View next topic |
Author |
Message |
ixion l33t


Joined: 16 Dec 2002 Posts: 708
|
Posted: Mon Sep 15, 2003 12:23 pm Post subject: navigating sub directories with apache |
|
|
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 |
|
 |
devon l33t

Joined: 23 Jun 2003 Posts: 943
|
Posted: Mon Sep 15, 2003 3:52 pm Post subject: |
|
|
Make sure that Others can rx the directory.
|
|
Back to top |
|
 |
telex4 l33t


Joined: 21 Sep 2002 Posts: 704 Location: Reading, UK
|
Posted: Mon Sep 15, 2003 4:54 pm Post subject: |
|
|
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 |
|
 |
ixion l33t


Joined: 16 Dec 2002 Posts: 708
|
Posted: Mon Sep 15, 2003 10:49 pm Post subject: |
|
|
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!
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 |
|
 |
ixion l33t


Joined: 16 Dec 2002 Posts: 708
|
Posted: Tue Sep 16, 2003 6:13 pm Post subject: |
|
|
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...  _________________ only the paranoid survive |
|
Back to top |
|
 |
|