Closed
Bug 275585
Opened 20 years ago
Closed 19 years ago
[Apache 2]MPL, tri-license HTML boilerplates invisible except via source view
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Waldo, Assigned: annevk)
References
()
Details
The boilerplate text for the HTML versions of the MPL and MPL/GPL/LGPL is currently plaintext, but it needs to be written as an HTML document. The only way to view the text now is to view the source.
Reporter | ||
Comment 1•20 years ago
|
||
Oops, wrong URL (from before I checked and found that both MPL and tri-license boilerplates were bad for HTML), sorry for bugspam...
Does anybody understand Apache 2 well enough to understand why it would send a file whose name ends in "-html" as text/html?
Comment 3•20 years ago
|
||
nobody turned on content negotiation in that directory, did they?
Comment 4•20 years ago
|
||
you're right though, it feeds it as text/plain on www-stage (which is apache 1.3)...
Summary: MPL, tri-license HTML boilerplates invisible except via source view → [Apache 2]MPL, tri-license HTML boilerplates invisible except via source view
Assignee | ||
Comment 5•20 years ago
|
||
(In reply to comment #2) > Does anybody understand Apache 2 well enough to understand why it would send a > file whose name ends in "-html" as text/html? I believe that happens when you use: AddType text/html html Instead of: AddType text/html .html We could either fix that or give the files a .txt extension and use mod_negotiation to hide it again.
Comment 6•20 years ago
|
||
(In reply to comment #5) > (In reply to comment #2) > > Does anybody understand Apache 2 well enough to understand why it would send a > > file whose name ends in "-html" as text/html? > > I believe that happens when you use: > > AddType text/html html I just verified that this is NOT present anywhere in the httpd.conf or included files on reptile. In fact, there's very few AddType lines at all, I suspect it may be "built in" on apache2.
Comment 7•20 years ago
|
||
You can add this to the .htaccess in that directory though: <FilesMatch ^mpl-tri-license-html$> ForceType text/plain </FilesMatch>
Assignee | ||
Comment 8•19 years ago
|
||
Done. Slightly different though as discussed with justdave on IRC: <http://cvs-www.mozilla.org/webtools/bonsai/cvslog.cgi?file=mozilla-org/html/MPL/boilerplate-1.1/.htaccess>
Assignee: mozilla.webmaster → bug
Assignee | ||
Comment 9•19 years ago
|
||
And marking fixed...
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: mozilla.org → Websites
Updated•12 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•