css files are reported as text/plain by mimetype on ubuntu machineapproach to re-route (plain-text) protocols...
Why does this expression simplify as such?
How could a planet have erratic days?
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Has any country ever had 2 former presidents in jail simultaneously?
How to convince somebody that he is fit for something else, but not this job?
Multiplicative persistence
What to do when eye contact makes your coworker uncomfortable?
Which Article Helped Get Rid of Technobabble in RPGs?
Why does Carol not get rid of the Kree symbol on her suit when she changes its colours?
What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?
Why do ¬, ∀ and ∃ have the same precedence?
Delete multiple columns using awk or sed
"It doesn't matter" or "it won't matter"?
Does the Linux kernel need a file system to run?
A variation to the phrase "hanging over my shoulders"
PTIJ: Why is Haman obsessed with Bose?
The IT department bottlenecks progress, how should I handle this?
Non-trope happy ending?
Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?
Is it allowed to activate the ability of multiple planeswalkers in a single turn?
A Trivial Diagnosis
US tourist/student visa
Does "he squandered his car on drink" sound natural?
Circuit Analysis: Obtaining Close Loop OP - AMP Transfer function
css files are reported as text/plain by mimetype on ubuntu machine
approach to re-route (plain-text) protocols for machines behind a router that are downWhat are Ubuntu Vad Files?Virtual servers not serving .css files properly, issuing 302 response and forwarding to 404 error pageWrong mime-type for css and js filesHow Nginx can open all ASP files as text/html?Nginx: serving files as text without having .txt appended to itPlain-text login with sendmail and SASL, Ubuntu 10.04How to correct the MIME type from being recognized as text/x-asm to text/css?How to serve giziped text files with nginxRecovering deleted plain text (emails) files from raw disk image
When I run the following command
mimetype -DM --database /usr/share/misc/magic /path/to/reset.css
I expect to see text/css
as a result but instead I get text/plain
. Is there a way to fix this?
mimetype man page.
EDIT
Removing -M didn't change anything
root@srv /var/www/vhosts/zf2skeleton # mimetype -D --database /usr/share/misc/magic module/Application/public/css/bootstrap.min.css
> Data dirs are: /usr/share/misc/magic
> Checking inode type
WARNING: You don't seem to have a mime-info database. The
shared-mime-info package is available from http://freedesktop.org/ .
> Checking globs for basename 'bootstrap.min.css'
> Checking for extension '.min.css'
> Checking for extension '.css'
> File exists, trying default method
module/Application/public/css/bootstrap.min.css: text/plain
linux ubuntu mime-type
bumped to the homepage by Community♦ 49 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
When I run the following command
mimetype -DM --database /usr/share/misc/magic /path/to/reset.css
I expect to see text/css
as a result but instead I get text/plain
. Is there a way to fix this?
mimetype man page.
EDIT
Removing -M didn't change anything
root@srv /var/www/vhosts/zf2skeleton # mimetype -D --database /usr/share/misc/magic module/Application/public/css/bootstrap.min.css
> Data dirs are: /usr/share/misc/magic
> Checking inode type
WARNING: You don't seem to have a mime-info database. The
shared-mime-info package is available from http://freedesktop.org/ .
> Checking globs for basename 'bootstrap.min.css'
> Checking for extension '.min.css'
> Checking for extension '.css'
> File exists, trying default method
module/Application/public/css/bootstrap.min.css: text/plain
linux ubuntu mime-type
bumped to the homepage by Community♦ 49 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
When I run the following command
mimetype -DM --database /usr/share/misc/magic /path/to/reset.css
I expect to see text/css
as a result but instead I get text/plain
. Is there a way to fix this?
mimetype man page.
EDIT
Removing -M didn't change anything
root@srv /var/www/vhosts/zf2skeleton # mimetype -D --database /usr/share/misc/magic module/Application/public/css/bootstrap.min.css
> Data dirs are: /usr/share/misc/magic
> Checking inode type
WARNING: You don't seem to have a mime-info database. The
shared-mime-info package is available from http://freedesktop.org/ .
> Checking globs for basename 'bootstrap.min.css'
> Checking for extension '.min.css'
> Checking for extension '.css'
> File exists, trying default method
module/Application/public/css/bootstrap.min.css: text/plain
linux ubuntu mime-type
When I run the following command
mimetype -DM --database /usr/share/misc/magic /path/to/reset.css
I expect to see text/css
as a result but instead I get text/plain
. Is there a way to fix this?
mimetype man page.
EDIT
Removing -M didn't change anything
root@srv /var/www/vhosts/zf2skeleton # mimetype -D --database /usr/share/misc/magic module/Application/public/css/bootstrap.min.css
> Data dirs are: /usr/share/misc/magic
> Checking inode type
WARNING: You don't seem to have a mime-info database. The
shared-mime-info package is available from http://freedesktop.org/ .
> Checking globs for basename 'bootstrap.min.css'
> Checking for extension '.min.css'
> Checking for extension '.css'
> File exists, trying default method
module/Application/public/css/bootstrap.min.css: text/plain
linux ubuntu mime-type
linux ubuntu mime-type
edited Feb 14 '12 at 16:48
Optimus
asked Feb 13 '12 at 17:47
OptimusOptimus
144110
144110
bumped to the homepage by Community♦ 49 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 49 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The manpage you linked to says it looks in the following locations for the database:
$HOME/.local/share/mime
/usr/local/share/mime
/usr/share/mime
You can maybe figure out how to add an entry for CSS by looking at those directories.
After updating you have to run update-mime-database
EDIT:
You're using the -M switch which means it won't look at the file extension. It will look at the contents of the file only. A CSS file doesn't have a consistent header though so I doubt that will work.
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f359667%2fcss-files-are-reported-as-text-plain-by-mimetype-on-ubuntu-machine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The manpage you linked to says it looks in the following locations for the database:
$HOME/.local/share/mime
/usr/local/share/mime
/usr/share/mime
You can maybe figure out how to add an entry for CSS by looking at those directories.
After updating you have to run update-mime-database
EDIT:
You're using the -M switch which means it won't look at the file extension. It will look at the contents of the file only. A CSS file doesn't have a consistent header though so I doubt that will work.
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
add a comment |
The manpage you linked to says it looks in the following locations for the database:
$HOME/.local/share/mime
/usr/local/share/mime
/usr/share/mime
You can maybe figure out how to add an entry for CSS by looking at those directories.
After updating you have to run update-mime-database
EDIT:
You're using the -M switch which means it won't look at the file extension. It will look at the contents of the file only. A CSS file doesn't have a consistent header though so I doubt that will work.
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
add a comment |
The manpage you linked to says it looks in the following locations for the database:
$HOME/.local/share/mime
/usr/local/share/mime
/usr/share/mime
You can maybe figure out how to add an entry for CSS by looking at those directories.
After updating you have to run update-mime-database
EDIT:
You're using the -M switch which means it won't look at the file extension. It will look at the contents of the file only. A CSS file doesn't have a consistent header though so I doubt that will work.
The manpage you linked to says it looks in the following locations for the database:
$HOME/.local/share/mime
/usr/local/share/mime
/usr/share/mime
You can maybe figure out how to add an entry for CSS by looking at those directories.
After updating you have to run update-mime-database
EDIT:
You're using the -M switch which means it won't look at the file extension. It will look at the contents of the file only. A CSS file doesn't have a consistent header though so I doubt that will work.
edited Feb 13 '12 at 20:25
answered Feb 13 '12 at 18:46
sjbothasjbotha
24548
24548
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
add a comment |
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
There is already an entry in /usr/share/mime/test called css.xml
– Optimus
Feb 13 '12 at 20:22
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
Edited my answer.
– sjbotha
Feb 13 '12 at 20:25
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f359667%2fcss-files-are-reported-as-text-plain-by-mimetype-on-ubuntu-machine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown