Displaying 6 results from an estimated 6 matches for "forcetyp".
Did you mean:
forcetype
2006 Jun 08
2
Page caching for urls with dots
hi everyone,
I have a pesky problem with page caching, sorry if it sounds dummy.
Whenever I''m caching an url like
/controller/argument.with.dots
instead of getting a saved page like
/public/controller/arguments.with.dots.html
I get
/public/controller/arguments.with.dots
which makes the webserver confused as to how to send it (it gets a
Content-Type of text/plain instead of
2007 Feb 11
2
rails cache problems
...d files (so I
end up with files like 122.21 instead of 122.21.html). Then the next
time it is served up via the web server (mongrel or apache) Firefox
treats it as a binary file. I can''t find a fix for this so I was
hoping there would be a work around in Mongrel or Apache.
I tried ForceType text/html inside a <Directory> element in my apache
configuration but that didn''t seem to be completely reliable.
For now I''ll switch to trying to use action caching instead.
Thanks,
Curtis
2009 Nov 14
4
php config security concern for c5
...bspace for images, pdfs, etc. if the
app assumes that anything.jpg is safe, this addhandler feature will
surprise it.
a fix is to replace two lines in /etc/httpd/conf.d/php.conf:
AddHandler php5-script .php
AddType text/html .php
with:
<FilesMatch \.php$>
SetHandler php5-script
ForceType text/html
</FilesMatch>
i have reported this upstream. hopefully they will see it as a problem
and address it.
2006 Feb 07
1
Page caching when name contains a dot (period)
...the raw HTML being served up as plain text on subsequent
views.
So, the workaround for this is to (assuming all the pages that are being
cached should be served as text/html) make a .htaccess file with the
following line in it, and put it in the same directory as the problematic
cached files:
ForceType text/html
That solves the problem and serves all the pages (even those without file
extensions) as text/html - though whether this is a bigger issue (maybe even
a slight bug) with caches_page, I guess is up for debate.
Anyway, I thought I''d post my easy workaround in case anyone else...
2009 Jan 28
4
Call Recording Alias
Modified httf.conf file and added :
------------------------------------------------------
Alias /recordings/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Created a folder under vicidial as recordings.
FULL_RECORDING is also enabled.
2006 Feb 20
8
Downloading Files
I''m building a rails app that will create .xml documents for the users
of a particular intranet.
My question is two fold
1. The files are in /public/files/something.xml, etc...
How can I create a link_to in rails to access these files?
2. How I can I force the file to be downloaded (bring up a save dialog)
as opposed to displaying in the browser?
Thanks for hte help.
--
Posted