Re: Managing Static Files

2024-01-30 Thread Maxim Dounin
Hello! On Tue, Jan 30, 2024 at 07:36:49AM +, bittn...@gmail.com wrote: > Hi...I read a few articles about managing static files and I'm a > bit confused! > I use Nginx as the main server to host my website > I enabled gzip and brotli > I have also enabled gzip_static and

Managing Static Files

2024-01-29 Thread bittn...@gmail.com
Hi...I read a few articles about managing static files and I'm a bit confused! I use Nginx as the main server to host my website I enabled gzip and brotli I have also enabled gzip_static and brotli_static And I have pre-compressed all static files with gzip and brotli I read in an article

Re: django app static files on the different server not get loaded

2022-01-05 Thread ningja
Thank you. Francis. I did just as you said. location /static_app2/ { proxy_pass https://test2.com:444; } Posted at Nginx Forum: https://forum.nginx.org/read.php?2,293219,293265#msg-293265 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/

Re: django app static files on the different server not get loaded

2022-01-05 Thread Francis Daly
On Mon, Jan 03, 2022 at 05:58:32PM -0500, ningja wrote: Hi there, > After I modified my app2 and put all my static files to static_app2 and with > Francis' suggestion location = /static_app2/img/logo-2.jpg { proxy_pass > https://test2.com:444; } . I was able to solve my proble

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
After I modified my app2 and put all my static files to static_app2 and with Francis' suggestion location = /static_app2/img/logo-2.jpg { proxy_pass https://test2.com:444; } . I was able to solve my problem. Thank you Francis and Paul. Posted at Nginx Forum: https://forum.nginx.org/rea

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
Hi Francis, I tried your suggestion. location = /static2/img/logo-2.jpg { proxy_pass https://test2.com:444; } and I can access the img from http://test1/static2/img/logo-2.jpg. I'll try to edit my app2 django to use static2 instead static. Thank you for your suggestion, Sue Posted at Nginx For

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
p.s. If I do curl from my local without connect vpn. curl https://test1.com and I got the landing page of the app1. curl https://test2.com I got 301. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,293219,293235#msg-293235 ___ nginx mailing

Re: django app static files on the different server not get loaded

2022-01-03 Thread ningja
another thing I should mention : I added a URL for app2 on the app1 landing page which is django path. I think nginx "think" the app2 is part of the app1 so it looking for the static files under test1. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,293219,293234#msg-293234 ___

Re: django app static files on the different server not get loaded

2022-01-03 Thread Francis Daly
just what I > wanted) but the page did NOT try load the static files from > https://test2.com/app2/ instead it try to load the static from > https://test1.com/app2/. How can I have the nginx to look app2's static > files under https://test2.com? You need your nginx to know that

Re: django app static files on the different server not get loaded

2022-01-02 Thread ningja
on the test1 from my original post. Both server has their own IP. I have two separate instances of nginx on separate servers. I can access https://test1.com/app1 from wan. I can access https://test2.com/app2 from lan. I can not load static files https://test2.com/app2 from wan. What do you mean

Re: django app static files on the different server not get loaded

2022-01-02 Thread Paul
A happy new 2022 to all. A few thoughts, Sunday afternoon, watching the snow fall... On 2022-01-02 4:26 p.m., ningja wrote: [snip] App1 can load the static files and run correctly from URL https://test1.com/app1. Test2 has a Django app2 which has static files under /app/public/static on server

Re: django app static files on the different server not get loaded

2022-01-02 Thread ningja
Hi Francis, Thank you for spent time to answer my question. I am sorry for some of the confusion here. App1 can load the static files and run correctly from URL https://test1.com/app1. Test2 has a Django app2 which has static files under /app/public/static on server test2. I can access it from

Re: django app static files on the different server not get loaded

2022-01-02 Thread Francis Daly
test1.com/app1/, and can access the Django that is on test1 -- but the static files are below the url /static/, not the url /app1/static/. And the world can access https://test1.com/app2/, and can access the Django that is on test2, but cannot access the static files there, because they are also belo

django app static files on the different server not get loaded

2021-12-31 Thread ningja
I have two server test1.com and test2.com. test1 is internet public face server. Test2 is intranet only server. Both servers have nginx docker running. Test1 run a Django app1 which has static files under /app/public/static. App1 can load the static files and run correctly from URL https://test1

Re: transforming static files

2020-09-01 Thread Francis Daly
On Mon, Aug 31, 2020 at 01:38:28PM -0400, Mark Lybarger wrote: Hi there, > i also have some .bin files that can be converted using a custom java api. > how can i easily hook the bin files to processed through a command on the > system? > > java -jar MyTranscoder.jar myInputFile.bin The easy way

transforming static files

2020-08-31 Thread Mark Lybarger
i have a bunch of files on a local filesystem (ok, it's NAS) that I serve up using an nginx docker image, just pointing the doc root to the system i want to share. that's fine for my xml files. the users can browse and see then on the filesystem. i also have some .bin files that can be converted

Re: Static files

2020-05-12 Thread Francis Daly
On Mon, May 11, 2020 at 10:24:49AM -0400, MarcoI wrote: Hi there, > I'm trying to figure out how to load static files . What request do you make? What file on your filesystem do you want nginx to return, in response to that request? f -- Francis Dalyfran...@da

RE: Static files

2020-05-11 Thread Reinis Rozitis
> server { > location / { > root > /home/marco/webMatters/vueMatters/ggc/src/components/auth/weights; >} > } Since it's under /home most likely nginx has no access to the directory. Check the user under which nginx is running (probably nobody) and try to check if you can read the fil

Re: Static files

2020-05-11 Thread MarcoI
Following the indications here: https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/ I modified the lines in /etc/nginx/conf.d/default.conf as follows: server { root /home/marco/webMatters/vueMatters/GraspGlobalChances/src/components/auth/weights; location / {

Static files

2020-05-11 Thread MarcoI
I'm trying to figure out how to load static files . I added to /etc/nginx/conf.d/default.conf the following lines: server { location / { root /home/marco/webMatters/vueMatters/ggc/src/components/auth/weights; } } But I'm still getting this error: Uncaught (in promise) S

Static files do not load

2019-04-11 Thread pratheep g via nginx
Hi, I need to rewrite my URL like http://www.mysite.com/abc    >>>    /abc    >>>    /abc/styles/sample.css     >>>  /abc/styles/sample2.css     >>>  /abc/styles/sampl

Re: Protect against php files being send as static files

2019-03-26 Thread Olaf van der Spek
Ian Hobson Wrote: --- > If you place your php files outside the main root directory, and > then do something like this That'd good but unfortunately not common practice. It'd be nice to have better safety by default. Posted at Nginx Forum: http

Re: Protect against php files being send as static files

2019-03-12 Thread Ian Hobson
Hi, On 12/03/2019 08:53, Olaf van der Spek wrote: Ian Hobson Wrote: http://forumm.nginx.org/read.php?2,88846,page 3 This link doesn't work.. Sorry - typo (made months ago) https://forum.nginx.org/read.php?2,88845,page=3 try_files $uri =404; fastcgi_split_path_info ^(.+\.ph

Re: Protect against php files being send as static files

2019-03-12 Thread Olaf van der Spek
Ian Hobson Wrote: > http://forumm.nginx.org/read.php?2,88846,page 3 This link doesn't work.. >try_files $uri =404; >fastcgi_split_path_info ^(.+\.php)(/.+)$; >include /etc/nginx/fastcgi_params; >fastcgi_param SCRIPT_FILENAME > $document_root$fastcgi_script_name; >

Re: Protect against php files being send as static files

2019-03-12 Thread Olaf van der Spek
Francis Daly Wrote: > I don't think that stock-nginx has a configuration directive for this. > > "Not putting files that you don't want sent, into a directory that > nginx > has been told to send files from", would probably be the safest way to > avoid external misconfiguration. Sure, but as that

Re: Protect against php files being send as static files

2019-03-06 Thread Ian Hobson
On 05/03/2019 11:50, Olaf van der Spek wrote: Hi, Is there a way to protect against php files being send as static files / source due to some php specific configuration being missed (by accident)? Another web server has this by default: static-file.exclude-extensions = ( ".php", &qu

Re: Protect against php files being send as static files

2019-03-05 Thread Francis Daly
On Tue, Mar 05, 2019 at 06:50:54AM -0500, Olaf van der Spek wrote: Hi there, > Is there a way to protect against php files being send as static files / > source due to some php specific configuration being missed (by accident)? > Another web server has this by default: static-fil

Protect against php files being send as static files

2019-03-05 Thread Olaf van der Spek
Hi, Is there a way to protect against php files being send as static files / source due to some php specific configuration being missed (by accident)? Another web server has this by default: static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

Re: Cache only static files in sub/subfolder but not sub

2017-02-22 Thread JoakimR
Hi Francis You're right I have overseen the ^~ for the location. So for others, the solution to "force" the location directives is.. location ^~ /thumbs/embedded { add_header X-Served-By "IDENT1"; add_header Cache-Control public; add_header Pragma 'public'; add_header X-Cache-Status $upstream_c

Re: Proxying and static files

2017-02-21 Thread Alan Orth
Hi, The try_files directive is great for this[0]. But like Francis pointed out, you need to have a pattern that can be matched for static files, and then nginx can look for the files on disk (relative to the root) before proxying the request back to the dynamic application. Regards, [0] http

Re: Cache only static files in sub/subfolder but not sub

2017-02-20 Thread Francis Daly
On Sun, Feb 19, 2017 at 02:53:22PM -0500, JoakimR wrote: Hi there, > Now the trouble shooting: as noticed above, this only works when I out > comments the second location, which is NOT to be cached at all. I have of > course tried to switch between which location comes first. Even chose I > recal

Re: Cache only static files in sub/subfolder but not sub

2017-02-20 Thread JoakimR
Found the answer to my question here http://nginx.org/en/docs/http/ngx_http_core_module.html#location "If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, or memcached_pass, then the s

Cache only static files in sub/subfolder but not sub

2017-02-19 Thread JoakimR
Hi, I'm having as so many other a subfolder with media files, but I've like to do a simple file caching of only one of the subfolders = /media//thumbs/embedded with path insite the domain.tld and serve them as media.domain.tld So what I have done is added this to my config and it's working fine wh

Re: Proxying and static files

2017-02-16 Thread Francis Daly
On Thu, Feb 16, 2017 at 08:26:35AM -0500, epoch1 wrote: Hi there, > I've tried something like the following but can't get it work for each app: > location ~* /(images|css|js|files)/ { > root /home/username/app1/public/; > } > > If I request app1/js/script.js for example it goes to > /home/us

Proxying and static files

2017-02-16 Thread epoch1
Hi I have a number of apps running behind nginx and I want to configure nginx so that is serves static content (js and css files) from the pulic directory of each app directly rather than proxying these requests, for example: myserver.com/app1 dynamic requests proxied to hypnotoad (perl server)

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Rainer Duffner
> Am 14.02.2017 um 22:07 schrieb Ebayer Ebayer : > > I want to cache critical files indefinitely regardless of them being hot or > stale until they're purged (by the app). > If you have enough RAM, they will stay cached. Do you also want to do the memory-management of your apps, allocating

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Francis Daly
On Tue, Feb 14, 2017 at 09:07:46PM +, Ebayer Ebayer wrote: Hi there, > I want to cache critical files indefinitely regardless of them being hot or > stale until they're purged (by the app). It still doesn't sound like a task for nginx to me. If you want your OS file-cache to do busy-work to

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Ebayer Ebayer
I want to cache critical files indefinitely regardless of them being hot or stale until they're purged (by the app). Thanks On Feb 15, 2017 4:30 AM, "Rainer Duffner" wrote: Am 14.02.2017 um 21:25 schrieb Ebayer Ebayer : Is there a more deterministic way besides fully trusting the MMU? I reall

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Rainer Duffner
> Am 14.02.2017 um 21:25 schrieb Ebayer Ebayer : > > Is there a more deterministic way besides fully trusting the MMU? I really > don't think the MMU will execute well on what I'm setting to accomplish. Some > more info: > > * I run Linux 2.6.32 (RH's) > > * I don't trust /dev/shm as a memory

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Ebayer Ebayer
Is there a more deterministic way besides fully trusting the MMU? I really don't think the MMU will execute well on what I'm setting to accomplish. Some more info: * I run Linux 2.6.32 (RH's) * I don't trust /dev/shm as a memory store * I want the kernel to keep files cached for a pre determined

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Rainer Duffner
> Am 14.02.2017 um 20:10 schrieb Ebayer Ebayer : > > Hi, > > I have Nginx running as a webserver (not as proxy). I need to cache static > files that are under /var/www/html/images in memory. What's the simplest way > to do this? Your OS does that for you. That’s

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Francis Daly
On Tue, Feb 14, 2017 at 07:10:13PM +, Ebayer Ebayer wrote: Hi there, > I have Nginx running as a webserver (not as proxy). I need to cache static > files that are under /var/www/html/images in memory. What's the simplest > way to do this? Don't do anything special in ngi

How to cache static files under root /var/www/html/images

2017-02-14 Thread Ebayer Ebayer
Hi, I have Nginx running as a webserver (not as proxy). I need to cache static files that are under /var/www/html/images in memory. What's the simplest way to do this? Thank you ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/ma

Nginx Serving Large Static Files >=2GB

2016-09-25 Thread c0nw0nk
So I want to find the best optimal settings for serving large static files with Nginx. >=2GB I read that "output_buffers" is the key. Would also like to know if it should be defined per location {} that the static file is served from or across the entire server via http {} and any o

Re: hide/strip set cookies on static files and howto use alias

2016-04-10 Thread Francis Daly
On Sat, Apr 09, 2016 at 09:16:33AM -0400, JoakimR wrote: Hi there, > Another Q For ease of searching in future, it probably will be simpler if new unrelated questions start new message threads, with a Subject: line that is relevant. > Hi do have this in my domain.conf > > location /admin {

Re: hide/strip set cookies on static files and howto use alias

2016-04-09 Thread JoakimR
Hi Francis, and of course everyone else Another Q Hi do have this in my domain.conf location /admin { index index.php; access_log off; log_not_found off; expires 0; } but yet, everythin

Re: hide/strip set cookies on static files and howto use alias

2016-04-08 Thread Francis Daly
On Fri, Apr 08, 2016 at 05:06:19AM -0400, JoakimR wrote: Hi there, > Hi Francis Daly thank you very much for your reply You're welcome. > Let's brake this down one by one. I followed you suggestion and added > fastcgi_connect_timeout 600s; to the conf, however the pages still time out > after ~

Re: hide/strip set cookies on static files and howto use alias

2016-04-08 Thread JoakimR
Hi Francis Daly thank you very much for your reply Let's brake this down one by one. I followed you suggestion and added fastcgi_connect_timeout 600s; to the conf, however the pages still time out after ~75 sec as expected do to this http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastc

Re: hide/strip set cookies on static files and howto use alias

2016-04-05 Thread Francis Daly
trip the "Set-Cookie" header from all static files like css and > jpg? I know i can setup a reverse proxy and use "proxy_hide_header > Set-Cookie", but seems like foolish to make yet another host, just to > reverse to your self and add a few hundred msec to the request. Wh

hide/strip set cookies on static files and howto use alias

2016-04-04 Thread JoakimR
Hi I have a few questions about how do I configure it. First question: How do I strip the "Set-Cookie" header from all static files like css and jpg? I know i can setup a reverse proxy and use "proxy_hide_header Set-Cookie", but seems like foolish to make yet another host

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-10-01 Thread Konstantin Pavlov
Hello, On 01/10/2015 11:19, Francis Daly wrote: > On Thu, Oct 01, 2015 at 10:33:41AM -0400, itpp2012 wrote: > > Hi there, > >> If the config hasn't changed there's only one thing you can do, build debug >> versions, enable debug logging and run Curl against a single file on both >> versions, the

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-10-01 Thread bbogdan
I will get this in a few hours as soon as I have a window to swap out the builds and debug them. Bogdan Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261944,261966#msg-261966 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/m

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-10-01 Thread Francis Daly
On Thu, Oct 01, 2015 at 10:33:41AM -0400, itpp2012 wrote: Hi there, > If the config hasn't changed there's only one thing you can do, build debug > versions, enable debug logging and run Curl against a single file on both > versions, then run a diff between the logs, or place on pastebin so we al

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-10-01 Thread itpp2012
If the config hasn't changed there's only one thing you can do, build debug versions, enable debug logging and run Curl against a single file on both versions, then run a diff between the logs, or place on pastebin so we all can have a look. Posted at Nginx Forum: http://forum.nginx.org/read.php?

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-09-30 Thread bbogdan
No Cache was enabled. Accessing the files directly on the drive took a lot longer on 1.9.5 then previous versions. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261944,261955#msg-261955 ___ nginx mailing list nginx@nginx.org http://mailman.

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-09-30 Thread itpp2012
Can you check the logfiles for MISS cache entries, if you are using caching on these static files. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261944,261950#msg-261950 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org

Re: 1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-09-30 Thread fsantiago
I second this and have seen the same performance hit. Sincerely, Fabian Santiago Sent from my iPhone > On Sep 30, 2015, at 12:50 AM, bbogdan wrote: > > I just migrated a new customer to nginx/php-fpm and notice a considerable > delay with requests. > > nginx Version 1.9.5 compiled from rpm

1.9.5 slower then 1.9.4 or 1.8.0 on static files

2015-09-29 Thread bbogdan
I just migrated a new customer to nginx/php-fpm and notice a considerable delay with requests. nginx Version 1.9.5 compiled from rpm with http/2 hosting: linode Virtualizer: KVM I noticed that the site was slower with an avg ttfb of ~1.1s. Only until i got to test static assets did i discover t

Re: Static files bad loading time

2015-05-27 Thread Francis Daly
On Thu, May 07, 2015 at 01:56:02PM -0400, grigory wrote: Hi there, > > Can you tell from nginx logs whether the slowness is due to > > slow-read-from-disk, or slow-write-to-client, or something else? > > Could you please tell me how to check this out? > My nginx logs do not contain this sort of

Re: Static files bad loading time

2015-05-08 Thread shahzaib shahzaib
Right, thanks. Btw, we used another nginx official doc for optimization and the most effective optimization parameter was tweaking the backlog from default 512 to 4096 in nginx listen directive. http://nginx.com/blog/tuning-nginx/ Regards. Shahzaib On Fri, May 8, 2015 at 6:18 PM, Valentin V. Ba

Re: Static files bad loading time

2015-05-08 Thread Valentin V. Bartenev
On Friday 08 May 2015 18:05:51 shahzaib shahzaib wrote: > Well, reducing keepalive_timeout and increasing the values of > worker_connections resolved our issue. Following is the reference we used > to tweak nginx config : > > http://blog.martinfjordvald.com/2011/04/optimizing-nginx-for-high-traffi

Re: Static files bad loading time

2015-05-08 Thread shahzaib shahzaib
Well, reducing keepalive_timeout and increasing the values of worker_connections resolved our issue. Following is the reference we used to tweak nginx config : http://blog.martinfjordvald.com/2011/04/optimizing-nginx-for-high-traffic-loads/ Thanks. Shahzaib On Fri, May 8, 2015 at 4:42 PM, Valent

Re: Static files bad loading time

2015-05-08 Thread Valentin V. Bartenev
On Thursday 07 May 2015 23:27:44 shahzaib shahzaib wrote: > Hi, > >There are some tweaks required to nginx configurations. If the same > image which usually takes second to response can takes upto 10-20 seconds > to load, the wide guess would be exceeding concurrent connections at peak > traff

Re: Static files bad loading time

2015-05-07 Thread shahzaib shahzaib
Hi, There are some tweaks required to nginx configurations. If the same image which usually takes second to response can takes upto 10-20 seconds to load, the wide guess would be exceeding concurrent connections at peak traffic. The directive worker_rlimit_nofile value is set much lower as comp

Re: Static files bad loading time

2015-05-07 Thread grigory
Hi Francis, > Can you tell from nginx logs whether the slowness is due to > slow-read-from-disk, or slow-write-to-client, or something else? Could you please tell me how to check this out? My nginx logs do not contain this sort of information. > Can you find any pattern in the requests which res

Re: Static files bad loading time

2015-04-30 Thread Francis Daly
On Sun, Apr 26, 2015 at 06:11:32AM -0400, grigory wrote: Hi there, > # Static files location > location ~* > ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ So - you have your configuration; you make a request; sometimes yo

Re: Static files bad loading time

2015-04-27 Thread grigory
So, Francis... Do you have any idea on my problem? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258372,258406#msg-258406 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Static files bad loading time

2015-04-26 Thread grigory
Sorry, I forgot to add the following part of the config (from server's block): # Static files location location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ { if ($args ~* "

Re: Static files bad loading time

2015-04-25 Thread Francis Daly
sn't seem to tell nginx to serve any static files. Perhaps the port-8080 server can tell you more about what is happening? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Static files bad loading time

2015-04-25 Thread grigory
I use CentOS 6.6. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258372,258373#msg-258373 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Static files bad loading time

2015-04-25 Thread grigory
Hey guys, I have a dedicated server at iWeb.com (i3-540 + 8GB RAM). It has free bandwidth, average load is around 0.05-0.2 during the day and I/O wait ratio is very low now. However, sometimes my Nginx 1.4.2 loads in a browser 1MB image for like 10-30 seconds. Sometimes it takes 2 seconds like it

Re: How to serve all existing static files directly with NGINX, but proxy other requests to jetty?

2014-11-18 Thread Francis Daly
On Tue, Nov 18, 2014 at 10:05:26AM -0500, AlexLuya wrote: Hi there, > I want to nginx to serve all static files that have been put at > directories:js,images,html,and proxy other requests to jetty,I have tried: > > location ~ ^/test/(.*)\. > (jpg|jpeg|gif|png|js|ico|css|zip|tgz

How to serve all existing static files directly with NGINX, but proxy other requests to jetty?

2014-11-18 Thread AlexLuya
My question is similar to http://stackoverflow.com/questions/869001/how-to-serve-all-existing-static-files-directly-with-nginx-but-proxy-to-apache,different is that my site directory structure looks like this: /nginxRoot/test/js /nginxRoot/test/images /nginxRoot/test/html

Re: Nginx serving Large static files on windows

2014-10-25 Thread c0nw0nk
I just found something cool i am not sure if anyone knows but our browsers will always use the first supplied media file to play from. get('mp4')) : ?> get('webm')) : ?> get('ogg')) : ?> get('flv')) : ?> So as you see the first media file to be delieverd for the media player to grab is the MP4

Re: RE: Nginx serving Large static files on windows

2014-10-25 Thread c0nw0nk
o: nginx@nginx.org > > Subject: Re: Nginx serving Large static files on windows > > From: nginx-fo...@nginx.us > > Date: Sat, 25 Oct 2014 13:51:11 -0400 > > > > Well i dont get it all at once i just have to wait like 44 seconds > before > > the first byte or bit

RE: Nginx serving Large static files on windows

2014-10-25 Thread Lukas Tribus
It heavily depends on the mp4 file used. moov atom needs to be at the beginning of the file, for example. Get mp4box and read its doc, it will help you prepare the file for streaming. > To: nginx@nginx.org > Subject: Re: Nginx serving Large static files on windows > From: nginx-fo...

Re: Nginx serving Large static files on windows

2014-10-25 Thread c0nw0nk
Well i dont get it all at once i just have to wait like 44 seconds before the first byte or bit of the download so i can play the media while the rest of it downloads. It is such a unique issue. I never noticed it until now because when i watch the same length videos on youtube and places they str

Re: Nginx serving Large static files on windows

2014-10-25 Thread itpp2012
I have no idea how it works in detail but I can assume when a server gets a request the server will respond with an answer :) in other words the client has to tell the server how much it wants and the server has to be able to send partial content when configured to do so as by rtmp design (well not

Re: Nginx serving Large static files on windows

2014-10-25 Thread c0nw0nk
Strange i think you are right i access the same mp4 size and vide length on other sites and they all do the same thing take like upto a miniute before they will play but a webm will play instantly. Any idea how i can fix this ? But what makes it strange is it does not happen with YouTube videos t

Re: Nginx serving Large static files on windows

2014-10-25 Thread c0nw0nk
So its not the server its not nginx and its my firefox and chrome ? Because i tried on chrome too and it takes just as long. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254257,254265#msg-254265 ___ nginx mailing list nginx@nginx.org http:/

Re: Nginx serving Large static files on windows

2014-10-24 Thread itpp2012
Sounds like a client issue which isn't dealing with partial downloads, had the same thing with an old vlc and twd/s5, used the latest vlc and it started playing after 2 seconds (2.8gb). If a client tells nginx to get it all it will send it all. Posted at Nginx Forum: http://forum.nginx.org/read.

Re: Nginx serving Large static files on windows

2014-10-24 Thread c0nw0nk
Sorry to keep posting this all seperatly but what makes this even stranger once 44 or so seconds pass and the media starts playing i can skip anywhere i like in the file and its fast as soon as i refresh and redownload i have to wait again. I dont know why there are other files just as large but n

Re: Nginx serving Large static files on windows

2014-10-24 Thread c0nw0nk
What a strange bug i am totaly confused because the way i generate media i also have a webm file of the same video and the webm you go to the url it may only be 900mb but its the same length (7 hours) and it loads instantly. The mp4 1.5gb 7hour long takes between 43 - 50 seconds before you can sta

Re: Nginx serving Large static files on windows

2014-10-24 Thread c0nw0nk
I serve allot of media files from the server they are all quick and fine just this 1.5GB (7 hour long) mp4 file to be served / loaded seems to take 44 seconds and i also do not use the mp4; module. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254257,254259#msg-254259

Re: Nginx serving Large static files on windows

2014-10-24 Thread c0nw0nk
It appears to maybe be something else the media file is about 1.5gb and it will just take about 44 seconds before it starts playing. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254257,254258#msg-254258 ___ nginx mailing list nginx@nginx.or

Nginx serving Large static files on windows

2014-10-24 Thread c0nw0nk
directio 2G; So i allow uploads of 2Gigs and i do streaming and with files being streamed that are 2gigs in size you can imagine things could of been loading a bit slow. Now itpp2012 mentioned to me in another area of the forum "(mapping a drive is slow, use direct ip access)" And with my drives

Serving static files statically with GET, everything else to backend

2014-02-13 Thread michelem
Hello folks, Maybe this will save some time to someone. I have a setup where I serve a web application as follows: * server A with nginx handles directly as much static content as possible * only requests for URLs requesting dynamic processing go to server B hosting the application server This

Re: Proxy_cache or direct static files ?

2013-12-20 Thread Larry
Makes sense Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245544,245752#msg-245752 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Proxy_cache or direct static files ?

2013-12-19 Thread Maxim Dounin
Hello! On Thu, Dec 19, 2013 at 09:48:45AM -0500, Larry wrote: > Ok, > > Now I get it right :) > > @Maxim : when you say faster memory storage, doesn't nginx get the result > cached by the os itself ? And so in the ram ? > > What could be faster than that ? Consider you have 100T of data on ro

Re: Proxy_cache or direct static files ?

2013-12-19 Thread Larry
Ok, Now I get it right :) @Maxim : when you say faster memory storage, doesn't nginx get the result cached by the os itself ? And so in the ram ? What could be faster than that ? Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245544,245721#msg-245721

Re: Proxy_cache or direct static files ?

2013-12-16 Thread Jonathan Matthews
uest comes in. Serving static files from local disk is, well, for on-disk local assets. They're different concepts. Don't confuse them. Just recognise whichever one you're doing, and use the appropriate technique. ___ nginx maili

Re: Proxy_cache or direct static files ?

2013-12-16 Thread Maxim Dounin
Hello! On Sun, Dec 15, 2013 at 05:01:25AM -0500, Larry wrote: > Hello, > > I don't quite understand what I could get from caching with proxy_cache vs > serving static files directly. > > Everywhere people tend to say that it is better to cache, but isn't caching &g

Re: Proxy_cache or direct static files ?

2013-12-16 Thread Larry
Did i understand something wrong ? Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245544,245552#msg-245552 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Proxy_cache or direct static files ?

2013-12-15 Thread Larry
Hello, I don't quite understand what I could get from caching with proxy_cache vs serving static files directly. Everywhere people tend to say that it is better to cache, but isn't caching the same as serving directly from static file ? Say that I serve home.html from a plain static

bad performance with static files + keepalive

2013-10-26 Thread mex
Hi List, i have a strange performance-issue on a server that serves static-files only (http + https), if files are bigger than 5k: - rps drops from 6500 rps (empty file) to 13 rps when requesting a file > 5k - perftest with location /perftest/ is at 8000 rps (https) / 15000 rps (http) - perft

Re: Nginx static files

2013-09-25 Thread Jonathan Matthews
On 25 Sep 2013 09:18, "pacolotero pacolotero" wrote: > > I have a rails server and I would like to serve all this static files *. > jpg, *. png, *. css, *. js, *. gif, *. jpeg with nginx > > This is my actual configuration You appear to have forgotten to ask a question!

Nginx static files

2013-09-25 Thread pacolotero pacolotero
I have a rails server and I would like to serve all this static files *. jpg, *. png, *. css, *. js, *. gif, *. jpeg with nginx This is my actual configuration server { listen 443; server_name emotionalworld.co www.emotionalworld.co; rewrite ^ http://$server_name$request_uri? permanent

Re: Nginx internal server errors static files first load only?

2013-07-30 Thread keogh
This can be ignored now, I've found the issue. It was samba locking the file, adding "oplocks = no" to my smb.conf solved the problem. Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241387,241389#msg-241389 ___ nginx mailing list ngin

Re: Nginx internal server errors static files first load only?

2013-07-30 Thread keogh
To clarify above, when I say I change the EOL and encoding on both sublime and notepad++ nothing changes. If notepad++ is windows EOL and ANSI it is still fine loading first time, no matter what I set sublime too it's always failing first load Posted at Nginx Forum: http://forum.nginx.org/read.ph

Nginx internal server errors static files first load only?

2013-07-30 Thread keogh
Hi Guys, Got a strange issue happening, I do my coding on Windows 8 x64 using Sublime Text 2.0.2, my sites run of a Ubuntu 13.04 VirtualBox guest over a bridged adaptor connection. Weird thing happens, if I save a static file (HTML, CSS etc) from Sublime on Windows to my Ubuntu vm and load it I g

  1   2   >