Argious
11-28-2003, 06:36 PM
Hi,
On one of my servers, the flash extension, .swf, isn't loading. Instead, whenever you access a .swf file, it goes automatically to a download dialog.
The server is running CPanel on Redhat linux 9.0. I've already tried adding this:
AddType application/x-shockwave-flash .swf
AddHandler application/x-shockwave-flash .swf
to the htaccess, but it didn't help.
Any advice would be greatly appreciated. Thanks in advanced!
check out this URL it should help you
http://www.flashcentral.com/Tech/Server/Apache.htm
Argious
11-29-2003, 04:00 AM
Hmm. Looked over that and double checked my httpd conf's mime.types but the flash handler for .swf is already in there. So that page didn't help. Thanks though.
VapoRub
11-29-2003, 04:04 AM
Is this server wide or just that .swf file itself?
make sure you have plugin installed for the browser
thedavid
11-29-2003, 04:16 AM
Check the mime types for swf files - if it's of an unrecognized type, many browsers will just try to download rather than display.
-David
Esr Tek
11-29-2003, 09:43 AM
If you have cPanel, you have to add flash to the apache build and it should appear in your php info page in the Configure command
-with-swf=/usr/local/flash'
Argious
11-29-2003, 02:02 PM
RHCE - Yes, I have the flash plugin installed on my computer. I know it isn't the design's coding for the site, since it works on my other server.
David - application/x-shockwave-flash swf is in the mime.types of my /etc/httpd/conf -- That is where the apache config should be on a CPanel running redhatlinux, right?
Eric - '--with-swf=/usr/local/flash'
yeah. it appears in my phpinfo.
This problem is really spinning me around. Hmm.
Esr Tek
11-29-2003, 04:38 PM
/etc/httpd/conf does not exist on my cPanel RH8 server.
This is correct cPanel location for apache config: /usr/local/apache/conf/httpd.conf
However this doesn't have anything about flash or swf in it.
To edit mime types I use this: /usr/local/apache/conf/mime.types
which has the swf entry in it: application/x-shockwave-flash swf
Argious
11-29-2003, 04:49 PM
Originally posted by Esr Tek
/etc/httpd/conf does not exist on my cPanel RH8 server.
This is correct cPanel location for apache config: /usr/local/apache/conf/httpd.conf
However this doesn't have anything about flash or swf in it.
To edit mime types I use this: /usr/local/apache/conf/mime.types
which has the swf entry in it: application/x-shockwave-flash swf
There is also a mime.types in my /usr/local/apache/conf, and it does have the entry: application/x-shockwave-flash swf as well.
Esr Tek
11-29-2003, 05:02 PM
This is all mine has for mime.types:
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
<IfModule mod_mime.c>
TypesConfig /usr/local/apache/conf/mime.types
</IfModule>