nginx treat php files as .txt per virtualhost

Stefanita rares Dumitrescu lists at ruby-forum.com
Wed Mar 12 16:44:26 MSK 2008


hi guys,

i have 2 virtualhosts

this is the http directive.

http {
    include       mime.types;
    default_type  application/octet-stream;
    server_names_hash_bucket_size  128;
    log_format  main  '$remote_addr - $remote_user [$time_local]
$request '
                      '"$status" $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  logs/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    keepalive_timeout  20;
    #gzip  on;

i would like to be able to use mime2.types for host2 and mime.type for
host1

is this possible?
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list