Today we have this line in the recommended apache confing for TWiki
AddType text/plain .html .htm .shtml .php .php3 .phtml .phtm .pl .py .cgi
This causes trouble sometimes for the TinyMCE editor. So instead we remove the .html and .htm lines like this
AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi
And add - commented out
# Block access to typical spam related attachments (.htm and .html files)
# Except the TWiki directory which is read only and does have attached html files.
# You should uncomment the two lines below if the TWiki is on the public Internet
#SetEnvIf Request_URI "twiki/pub/.*\.[hH][tT][mM]?$" blockAccess
#SetEnvIf Request_URI "twiki/pub/TWiki/.*\.[hH][tT][mM]?$" !blockAccess
which is a well proven method which has been in the
TWiki:TWiki.ApacheConfigGenerator
for a long time.
--
TWiki:Main/KennethLavrsen
- 18 Sep 2007