LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Web Server Wont Display Files (https://www.linuxquestions.org/questions/linux-server-73/web-server-wont-display-files-600910/)

carlosinfl 11-19-2007 01:36 PM

Web Server Wont Display Files
 
I have a basic web server running Apache2.

www.carlwill.com

Now my document root = /var/www/html and there I have a test directory called "sofa" and in that dir, I have some files (.JPG) & for the life of me they wont show up on the web and I don't know why...

As you can see below I am displaying the installed version of Apache and I "cd" into the "sofa" directory and I have many files there but they wont show up on http://carlwill.com/sofa but then I touch a new file called lq_test and it shows up.

I don't understand...

Code:

[root@mail /]# rpm -q httpd
httpd-2.2.3-7.el5.centos
[root@mail /]# cd /var/www/html/
[root@mail html]# ls -l
total 16
-rw-r--r-- 1 root root  178 Oct 29 18:09 index.html
drwxr-xr-x 2 root root 4096 Nov 19 14:28 sofa
[root@mail html]# cd sofa/
[root@mail sofa]# ls -l
total 2168
-rw-r--r-- 1 root root 107486 Oct 26 20:40 nateyoung1.jpg
-rw-r--r-- 1 root root 105015 Oct 26 20:40 nateyoung2.jpg
-rw-r--r-- 1 root root 174638 Oct 30 17:09 pixie.jpg
-rwxrwxrwx 1 root root 434796 Oct 31 18:51 sofa1.jpg
-rwxrwxrwx 1 root root 490736 Oct 31 18:51 sofa2.jpg
-rwxrwxrwx 1 root root 416325 Oct 31 18:51 sofa3.jpg
-rwxrwxrwx 1 root root 418527 Oct 31 18:51 sofa4.jpg
[root@mail sofa]# touch lq_test
[root@mail sofa]# ls -l
total 2172
-rw-r--r-- 1 root root      0 Nov 19 14:32 lq_test
-rw-r--r-- 1 root root 107486 Oct 26 20:40 nateyoung1.jpg
-rw-r--r-- 1 root root 105015 Oct 26 20:40 nateyoung2.jpg
-rw-r--r-- 1 root root 174638 Oct 30 17:09 pixie.jpg
-rwxrwxrwx 1 root root 434796 Oct 31 18:51 sofa1.jpg
-rwxrwxrwx 1 root root 490736 Oct 31 18:51 sofa2.jpg
-rwxrwxrwx 1 root root 416325 Oct 31 18:51 sofa3.jpg
-rwxrwxrwx 1 root root 418527 Oct 31 18:51 sofa4.jpg


bathory 11-20-2007 02:10 AM

What happens if you touch a file called test.jpg. Perhaps you have a <FileMatch> directive in apache conf or .htaccess that blocks .jpg files


All times are GMT -5. The time now is 10:44 AM.