Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache image handler

Status
Not open for further replies.

synergywei

IS-IT--Management
Oct 20, 2010
11
US
I'm working with media wiki images and I got a red x where the picture should be and the option 'save picture as' is greyed out. I don't think it's the group policy issue and all folders and subfolder within images has been set with permission 777.

someone has suggested to me it maybe a problem with how apache is handing the image files. I have no experience with apache, please take a look at the related section in the httpd.conf file. those are the snippet of code with the keyword 'addhandler'. what do i need to do for apache to handle image files? many thanks.

***********************************************
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
# to be distributed in multiple languages.)
#
AddHandler type-map var

Alias /error/ "/var/
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/var/ AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
 
You could knock me over with a feather if this turns out to be an apache issue. Apache can handle these types out of the box. The red x is telling you that the script is calling for an image at the specified url. The fact that it isn't showing up means that the image is not being found. This may be due to the way your script is writing paths. I didn't notice if this is a linux system or not but file names are case sensitive. Thus linux sees image.jpg as a different file from image.JPG.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top