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)

defect
Not set
minor

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.
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?
nobody turned on content negotiation in that directory, did they?
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
(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.
(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.
You can add this to the .htaccess in that directory though:

<FilesMatch ^mpl-tri-license-html$>
  ForceType text/plain
</FilesMatch>
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
And marking fixed...
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: mozilla.org → Websites
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.