You are not logged in or registered. Please login or register to use the full functionality of this board...


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Additiona Filetypes
07-04-2012, 09:14 PM
Post: #1
Additiona Filetypes
Would it be possible to add .dmg and .bin in


Code:
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|​flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|​iso)$ {

as well?

Since they are static files nginx can greatly improve its delivery!

Thanks!
Find all posts by this user
Quote this message in a reply
07-08-2012, 04:36 AM
Post: #2
RE: Additiona Filetypes
if you are comfortable editing the python code that generates the vhosts, you can edit /scripts/createvhosts.py and insert this modification where you see the rest of the filetypes.

then run /scripts/createvhosts.py
and /etc/init.d/nginx restart

this will apply that change to all of your domains
Find all posts by this user
Quote this message in a reply
07-08-2012, 04:54 AM
Post: #3
RE: Additiona Filetypes
Yea I actually did do that. I was just suggesting that it might be a good idea to add that in future builds so dmg can also take advantage of nginx as well.
Find all posts by this user
Quote this message in a reply
07-08-2012, 02:30 PM
Post: #4
RE: Additiona Filetypes
For sure. :-)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)