Apache's strange loading of .gif and .jpg images


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Apache's strange loading of .gif and .jpg images
# 1  
Old 02-10-2009
Apache's strange loading of .gif and .jpg images

Hello!

I have got next issue: my website is not showing up .gif and .jpg images, but by the direct links (ex. http://somedomain.com/img/logo.gif) i can view them without any problem.

Also if any image is clicked from http://somedomain.com/img/ URL , i get error:

Forbidden

You don't have permission to access /img/bg05.gif on this server.

This issue concerns just .gif ang .jpg file types, other types (jpeg, png, swf)
works fine..

Please help me to solve this case.
# 2  
Old 02-11-2009
Some Web hosts are known to block links to images from sites other than the originating web host. My understanding is that they do so by checking the "referer" HTTP header sent from browser while requesting the image, that is typically the full URL of the originating HTML page containing those references. This is commonly known as "hot-linking".

Are you sure you are not in this kind of hosting environment?
# 3  
Old 02-11-2009
Thanks for Your help, but I have just solved this problem.

There was an alias made in httpd.conf for testing new website and apache somehow did not like its URL without domain name
(ex. http://123.123.123.123/img).

I have registered domain name and made VirtualHost for my domain, and now everything works fine =)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash Script to find/sort/move images/duplicate images from USB drive

Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies

2. Solaris

Solaris 10 GIF files corrupt during unzip

Problem occurs on one Solaris build. Every time we unzip the Jan CPU, there are several patches that error out (appears to be related to the GIF files). When we unzip the CPU on another Solaris build to a network storage area, we can execute without issue on the original machine. Any ideas? ... (1 Reply)
Discussion started by: grahamr72
1 Replies

3. Web Development

I need apache to serve images from localhost instead of appserver

I have an apache/2.2.15 server centos 6.3 The apache server will be serving jboss app via mod_proxy (got that working) But... I need to serve the images from a local directory on the apache server. Here is my configuration. When I got to the site, I get 404s for all the images. What am I... (5 Replies)
Discussion started by: kmaq7621
5 Replies

4. Shell Programming and Scripting

Sendmail including gif's ?

My department uses an outlook mail merge to send login information to multiple users who request access. I would like to use sendmail for obvious reasons. I copied a sample email source, with all the disgusting html formatting from outlook, and can successfully send emails almost exactly as I did... (0 Replies)
Discussion started by: MaindotC
0 Replies

5. Web Development

How do I update GIF file?

Hi, I am trying to help my friend with her website, trying to update this GIF file, I am having so much hard time. Please advice. I have uploaded the GIF file for your review. She wants to keep the same color but just change the scheudle around. It looks so simple but not sure why it's... (3 Replies)
Discussion started by: samnyc
3 Replies

6. Shell Programming and Scripting

Rename all ".JPG" files to ".jpg" under all subfolders...

Hi, Dear all: One question ! ^_^ I'm using bash under Ubuntu 9.10. My question is not to rename all ".JPG" files to ".jpg" in a single folder, but to rename all ".JPG" files to ".jpg" in all subfolders. To rename all ".JPG" to ".jpg" in a single folder, for x in *.JPG; do mv "$x"... (7 Replies)
Discussion started by: jiapei100
7 Replies

7. UNIX for Dummies Questions & Answers

bmp to gif using convert

Hi Everyone, I am trying to use "convert" to create a movie from .bmp files. I have about 100 .bmp files which I would like to include. I use the following command: convert *.bmp test.gif The problem is that on the cluster I am using there doesn't seem to be enough memory to do this.... (1 Reply)
Discussion started by: jenjen_mt
1 Replies

8. Shell Programming and Scripting

Function loading in a shell scripting like class loading in java

Like class loader in java, can we make a function loader in shell script, for this can someone throw some light on how internally bash runs a shell script , what happenes in runtime ... thanks in advance.. (1 Reply)
Discussion started by: mpsc_sela
1 Replies

9. UNIX for Advanced & Expert Users

Problem loading php.mod on apache 2.0

i am having a hard time loading the php4.module onto the apache 2.0 server that I am running.. i have tried to load it statically and through an install and stiill can't seem to connect to localhost through any of the ports that the manual suggested 80 8000 8080.. so far i have manged to load... (2 Replies)
Discussion started by: moxxx68
2 Replies

10. UNIX for Dummies Questions & Answers

PDF/EPS to GIf/JPG Help!!

Hello. I have a large number of EPS files and a lesser number of PDFs that I need to convert to GIFs/JPGs using a Unix system. Is there a unix utility or application out there that can do this conversion? Thank you in advance for any help you can provide. -Pook (1 Reply)
Discussion started by: PookJP
1 Replies
Login or Register to Ask a Question