Hi, I want to set http://abc.com/test can be viewed, not downloaded.
how to configure mime.type.conf or nginx.conf file. Thank you!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,161032,161032#msg-161032
Hi, I want to set http://abc.com/test can be viewed, not downloaded.
how to configure mime.type.conf or nginx.conf file. Thank you!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,161032,161032#msg-161032
Hello!
On Sat, Dec 25, 2010 at 11:59:52AM -0500, letgohome wrote:
Hi, I want to set http://abc.com/test can be viewed, not downloaded.
how to configure mime.type.conf or nginx.conf file. Thank you!
location = /test {
types {}
default_type text/html;
}
http://wiki.nginx.org/HttpCoreModule#default_type
http://wiki.nginx.org/HttpCoreModule#types
Maxim D.
I try it, but unsuccessful,
server {
listen 80;
server_name localhost;
root /www/linux;
index index.html index.php index.htm;
location = /test {
types {}
default_type text/html;
}
location ~ \.php$ {
# fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,161032,161117#msg-161117
On Sat, Dec 25, 2010 at 10:40:16PM -0500, letgohome wrote:
types {}
[/code]
Probably browser has already cache the response.
Try another browser or try to rename location:
location = /test1 {
alias /www/linux/text;
...
–
Igor S.
http://sysoev.ru/en/
IE is successful , the test file is download with chrome, why?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,161032,161427#msg-161427
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs