Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I having issues with fresh installation of apache2 mime types for both css + javascript files apache send them with mime text/plain

i have mod_mime enabled and i tried to work around with .htaccess

AddType text/css .css

AddType application/x-javascript .js

with no luck , could any body help me



My os is ubuntu natty 11.10 , apache2 + php 5.3 , install via apt here is sample output file -i demo.css = demo.css: text/x-c; charset=us-ascii while on working apache + system (localhost)

loaded modules : core mod_log_config mod_logio prefork http_core mod_so mod_actions mod_alias mod_authz_groupfile mod_authz_host mod_autoindex mod_deflate mod_dir mod_env mod_include mod_mime mod_mime_magic mod_evasive20 mod_security2 mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_suexec mod_unique_id mod_userdir mod_vhost_alias

share|improve this question
Please shed some light on how Apache was installed (compiled from source or package install / platform or Linux distro). –  Henk Jan 22 '12 at 15:41
Can you provide your actual configuration? Are these files in a context where PHP is handling the requests? –  Shane Madden Jan 22 '12 at 20:14
there is no php used to generate css files , you can consider simple html pages ] –  tawfekov Jan 23 '12 at 9:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.