LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Debian 3.1 sarge, Apache and /var/www/images directory (https://www.linuxquestions.org/questions/linux-software-2/debian-3-1-sarge-apache-and-var-www-images-directory-158152/)

fiddelm3742 03-15-2004 06:36 PM

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?

AutOPSY 03-15-2004 08:27 PM

A HREF LINKS
 
your link "<A HREF="http://whatever/images/blah.jpg"
should probably be a full URL instead of " images/image.jpg"

fiddelm3742 03-15-2004 08:49 PM

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.

moinefou 03-16-2004 04:44 AM

Could you give the output of
Code:

ls -la /var/www/{,/images}

fiddelm3742 03-16-2004 11:46 AM

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

moinefou 03-16-2004 02:19 PM

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

fiddelm3742 03-16-2004 06:06 PM

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!

Smokin... 06-30-2005 11:02 AM

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!]


All times are GMT -5. The time now is 10:50 PM.