LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2004, 06:36 PM   #1
fiddelm3742
LQ Newbie
 
Registered: Dec 2002
Distribution: Debian 3.1 sarge
Posts: 11

Rep: Reputation: 0
Debian 3.1 sarge, Apache and /var/www/images directory


Here's the deal, I have a fresh install of Debian 3.1 testing (sarge). I installed appache flawlessly as well as a couple other things mssql, php4 etc. The only thing i had problems with was SSL. It errored out on one of the scripts, but i dont think that is related. Anywho, I made a directory images inside var/www/ and i put a single image in there. Well I can't view it at all through a web browser. All other pages load fine. I create a directory called image and put the same image in there and it works, but with the folder named images it refuses to work. I created it as root, and made sure it had the correct rights 644, Same as my image folder which works. Any idea why the folder named images doesn't work but image does?
 
Old 03-15-2004, 08:27 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
A HREF LINKS

your link "<A HREF="http://whatever/images/blah.jpg"
should probably be a full URL instead of " images/image.jpg"
 
Old 03-15-2004, 08:49 PM   #3
fiddelm3742
LQ Newbie
 
Registered: Dec 2002
Distribution: Debian 3.1 sarge
Posts: 11

Original Poster
Rep: Reputation: 0
I'm not even trying to link it. Just access it directly. my url http://fiddelke.gotdns.org/images/disc2.gif does not work but /image/disc2.gif does. Well it did till i moved the file. Seems kinda quirky to me.
 
Old 03-16-2004, 04:44 AM   #4
moinefou
LQ Newbie
 
Registered: Mar 2003
Location: Strasbourg, France
Distribution: Debian GNU/Linux
Posts: 27

Rep: Reputation: 15
Could you give the output of
Code:
ls -la /var/www/{,/images}
 
Old 03-16-2004, 11:46 AM   #5
fiddelm3742
LQ Newbie
 
Registered: Dec 2002
Distribution: Debian 3.1 sarge
Posts: 11

Original Poster
Rep: Reputation: 0
debian:/var/www# ls -la /var/www/{,/images}
/var/www/:
total 36
drwxr-xr-x 5 root root 4096 2004-03-16 11:37 .
drwxr-xr-x 14 root root 4096 2004-03-09 19:27 ..
-rw-r--r-- 1 root root 3469 2004-03-14 21:00 disc2.gif
drwxr-xr-x 2 root root 4096 2004-03-16 11:35 image
drwxr-xr-x 2 root root 4096 2004-03-16 11:37 images
-rw-r--r-- 1 root root 4698 2004-03-09 20:03 index2.html
-rw-r--r-- 1 www-data www-data 781 2004-03-13 15:49 index.html
lrwxrwxrwx 1 root root 21 2004-03-09 21:20 phpsysinfo -> /usr/share/phpsysinfo
drwxr-xr-x 2 root root 4096 2004-03-15 09:44 test2

/var/www//images:
total 12
drwxr-xr-x 2 root root 4096 2004-03-16 11:37 .
drwxr-xr-x 5 root root 4096 2004-03-16 11:37 ..
-rw-r--r-- 1 root root 3469 2004-03-16 11:37 disc2.gif

keep in mind the image folder holds the exact time picture and works perfectly. As seen here.

debian:/var/www# ls -la /var/www/{,/image}
/var/www/:
total 36
drwxr-xr-x 5 root root 4096 2004-03-16 11:37 .
drwxr-xr-x 14 root root 4096 2004-03-09 19:27 ..
-rw-r--r-- 1 root root 3469 2004-03-14 21:00 disc2.gif
drwxr-xr-x 2 root root 4096 2004-03-16 11:35 image
drwxr-xr-x 2 root root 4096 2004-03-16 11:37 images
-rw-r--r-- 1 root root 4698 2004-03-09 20:03 index2.html
-rw-r--r-- 1 www-data www-data 781 2004-03-13 15:49 index.html
lrwxrwxrwx 1 root root 21 2004-03-09 21:20 phpsysinfo -> /usr/share/phpsysinfo
drwxr-xr-x 2 root root 4096 2004-03-15 09:44 test2

/var/www//image:
total 12
drwxr-xr-x 2 root root 4096 2004-03-16 11:35 .
drwxr-xr-x 5 root root 4096 2004-03-16 11:37 ..
-rw-r--r-- 1 root root 3469 2004-03-16 11:35 disc2.gif
 
Old 03-16-2004, 02:19 PM   #6
moinefou
LQ Newbie
 
Registered: Mar 2003
Location: Strasbourg, France
Distribution: Debian GNU/Linux
Posts: 27

Rep: Reputation: 15
You should check if you don't have some alias to /images that triggers this error...
Code:
egrep -i 'alias /images' /etc/apache/httpd.conf
 
Old 03-16-2004, 06:06 PM   #7
fiddelm3742
LQ Newbie
 
Registered: Dec 2002
Distribution: Debian 3.1 sarge
Posts: 11

Original Poster
Rep: Reputation: 0
Ding Ding Ding!!!!
We have a winner!
Alias /images/ /usr/share/images/
I guess I hadn't even thought that it would setup an alias for me.
Thanks!
 
Old 06-30-2005, 11:02 AM   #8
Smokin...
LQ Newbie
 
Registered: Jan 2004
Distribution: Debian
Posts: 18

Rep: Reputation: 0
Thanks

Quote:
Originally posted by fiddelm3742
Ding Ding Ding!!!!
We have a winner!
Alias /images/ /usr/share/images/
I guess I hadn't even thought that it would setup an alias for me.
Thanks!
A big thanks to you all, solved a problem without effort. [For once!]
 
  


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
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 01:32 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 04:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 02:38 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 01:29 AM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration