How do you configure apache2 to serve SVG files?

Posted by Neil on Server Fault See other posts from Server Fault or by Neil
Published on 2010-04-20T01:54:29Z Indexed on 2010/04/20 2:03 UTC
Read the original article Hit count: 602

Filed under:
|
|

I've added these lines to /etc/apache2/apache2.conf:

AddEncoding gzip .svgz AddType image/svg+xml .svg AddType image/svg+xml .svgz

But SVG files still appear as broken images on my html page served by Apache.

I made sure I restarted the webserver, browser and cleared the cache as well.

How do you get SVG files to work with Apache2?

© Server Fault or respective owner

Related posts about apache2

Related posts about apache