LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-19-2007, 02:36 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 73
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
 
Old 11-20-2007, 03:10 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,961

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Image Files In Web Server breadfan311 Linux - Server 7 05-13-2007 08:29 PM
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 10:54 PM
Display server wont load after installing GLIB in /usr PhilK Red Hat 3 03-21-2006 06:38 AM
Same permissions on two files, but only one can be accessed by web server? murr4y Linux - Software 5 06-14-2005 03:59 AM
Getting files off web server itgl72 Linux - Newbie 5 08-11-2003 08:59 PM


All times are GMT -5. The time now is 05:10 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