Results 1 to 10 of 10
Hello;
Im having some problems listing directories with apache, although the directories are listing not all of them are showing.
if i list the directory via ssh i can see ...
- 08-24-2008 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 24
Apache Directory Listing problem
Hello;
Im having some problems listing directories with apache, although the directories are listing not all of them are showing.
if i list the directory via ssh i can see folders that via web i cant see.
nothing strange on the logs.
Any tip will be very helpfully!.
please fell free to post if you need more information.
Regards!.
- 09-02-2008 #2Linux Newbie
- Join Date
- Apr 2008
- Location
- India
- Posts
- 170
where is the box ..is it in a DC or an local machine ..?
Regards
David.s
davidanands.co.cc
-->Success is the list of failures ...!!!
- 09-02-2008 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 24
Hello davidanand thanks for your answer;
the server is in a DC and have a public ip, like a normal dedicated server.
is not a permission problem all the folders and files into the directories have the same permissions.
Regards!
- 09-02-2008 #4Linux Newbie
- Join Date
- Apr 2008
- Location
- India
- Posts
- 170
did you see the web pages that you have uploaded in the directories such as
the index page... then search for .htaccess and add the line "Options Indexes" but its not safe
try to allow an specific range of ipRegards
David.s
davidanands.co.cc
-->Success is the list of failures ...!!!
- 09-02-2008 #5Just Joined!
- Join Date
- Sep 2007
- Posts
- 24
Thanks again for your answer davidanand, if on the directories there is a index.html the browser load it , so i see the website and not the file, the listing only works if there is not a index.html into the folders.
In the .htaccess i put the line "Options Indexes" and have a basic auth too, to keep the files secures.
But i still with problems like not all the folders are listing by apache.
Regards!
- 09-02-2008 #6Linux Newbie
- Join Date
- Apr 2008
- Location
- India
- Posts
- 170
Hello,
please list the folders with permission
ls -latr
on the document root so that i can have a lookRegards
David.s
davidanands.co.cc
-->Success is the list of failures ...!!!
- 09-02-2008 #7Just Joined!
- Join Date
- Sep 2007
- Posts
- 24
here you are:
for example the last directory scripts is not listing, the rest of the files/direcotries is showing properly via web.[root@server directory]# ls -latr
total 2308
-rwxr-x--- 1 root root 140874 Aug 31 2007 rkhunter
-rwxr-xr-x 1 root root 764205 Oct 3 2007 wmlsdasm
-rwxr-xr-x 1 root root 761451 Oct 3 2007 wmlsc
-rwxr-xr-x 1 root root 13959 Oct 3 2007 seewbmp
-rwxr-xr-x 1 root root 593252 Oct 3 2007 mtbatch
-rwxr-xr-x 1 root root 829 Oct 3 2007 gw-config
-rwxr-x--- 1 root root 682 Oct 27 2007 mysql-load.cfg
drwxr-xr-x 2 root root 4096 Nov 14 2007 conf.d
drwxr-xr-x 7 root root 4096 Dec 4 2007 conf
-rwxr-xr-x 1 root root 198 Jan 3 2008 startreintento
-rwxr-xr-x 1 root root 198 Jan 3 2008 killreintento
-rwxr-xr-x 1 root root 203 Jan 8 2008 statsmt
-rwxr-xr-x 1 root root 189 Jan 8 2008 killmt
-rwxr-xr-x 1 root root 1764 Apr 24 12:57 startsu
-rwxr-xr-x 1 root root 313 Apr 24 13:15 killsu
-rwxr-xr-x 1 root root 1243 Jun 10 18:26 stopsu
drwxr-xr-x 5 root root 4096 Jun 10 18:26 .
-rw-r--r-- 1 root root 800 Jul 24 11:55 my.cnf
-rw------- 1 root root 2090 Aug 11 16:43 root
drwxr-xr-x 16 root root 4096 Aug 21 08:57 scripts
drwxrwxrwx 10 root root 4096 Aug 22 17:27 ..
- 09-02-2008 #8Linux Newbie
- Join Date
- Apr 2008
- Location
- India
- Posts
- 170
From you statement I guess that conf.d is listing but scripts in not.
But I don't see any permission issues here. Can you be more specific like what is the error or did you get a empty folders called scripts ..please provide the screen shot of you can
drwxr-xr-x 2 root root 4096 Nov 14 2007 conf.d
drwxr-xr-x 16 root root 4096 Aug 21 08:57 scriptsRegards
David.s
davidanands.co.cc
-->Success is the list of failures ...!!!
- 09-02-2008 #9Just Joined!
- Join Date
- Sep 2007
- Posts
- 24
here is the snapshot and yes is as you said conf.d is listing but scripts in not.
Hope helps!
Ps: Sorry if i erase some parts but i guess is a info a bit sensible to put it free on the inet
- 09-02-2008 #10Linux Newbie
- Join Date
- Apr 2008
- Location
- India
- Posts
- 170
hey the image is not clear ....I guess u see the scripts folder I am i right ?
Regards
David.s
davidanands.co.cc
-->Success is the list of failures ...!!!


Reply With Quote
