Questions tagged [static-files]

76 questions
0
votes
1 answer

Nginx issues with freshly overwritten images

I have this problem: I read directly (as static content) an image from https://whatever.com/static/image.png . The image is displayed properly. I overwrite this file with another one and I try again to read it accessing…
Alex Flo
  • 1,761
  • 3
  • 18
  • 23
0
votes
0 answers

IIS8.0 Response size limit?

I am trying to serve up some hefty (really hefty) static web pages. The one I am playing with is 20Mb, and contains image links to about 5000 images. I'm seeing some errors, where after a certain point no more images are loaded- I get a failed GET…
Nicros
  • 133
  • 5
0
votes
1 answer

serving static assets via http is really slow compared to sshfs (apache2/nginx)

After migrating to a new VPS I had some users complaining about slow loading images on their sites. After creating some test files with dd I realized that I can download all files via sshfs with full speed while downloads via web are painfully slow.…
s1lv3r
  • 1,155
  • 1
  • 14
  • 24
0
votes
1 answer

Apache memory usage with 404

We're facing a problem with an apache server serving static files. When there are lots of requests for a resource that doesn't exist the apache starts to grow in number of processes and memory usage until it uses all the memory available and stops…
0
votes
1 answer

IIS 7 - Static Resource Or HttpHandler

This is probably a fundamental question concerning IIS 7. I currently have a website running on IIS 7 on my local machine. I've noticed that when I type in a URL of the form http://localhost/styles/default.css, my web browser will open up the css…
Andrew
  • 175
  • 2
  • 7
0
votes
1 answer

nginx static content

I have a following deployed scenario. 1x nginx as frontserver for gzip and ssl ofload serving all request to the same server haproxy service listening on 127.0.0.1:8000 to do loadbalancing for three backend IIS webservers. Now I would like to move…
Elgreco08
  • 228
  • 3
  • 4
  • 16
0
votes
2 answers

How to create a share folder for multiple domains on Dreamhost

I have a Virtual Private server with Dreamhost. I'm trying to create a shared folder that all of my domains can access. In the folder I'd like to put PHP classes, and even static files like javascripts. I've created a directory on the same level as…
mikemick
  • 101
  • 2
0
votes
1 answer

Apache - Serving static files from different subdomain + machine

Here's the scenario A site is running on this domain - www.someserver.com I'm going to host subdomain.someserver.com on my machine. Let's say all the image files are under the directory 'img'. I don't want to copy all their images to my machine. So…
rubayeet
  • 117
  • 7
0
votes
0 answers

Is possible return a static page in https virtual host using lighttpd?

It seems like redirect is not done. If I put URL https://test2/static_page in browser it works but if I put https://test1 don't redirect SERVER["socket"] == ":443" { $HTTP["host"] == "test1" { url.redirect = ("" =>…
0
votes
0 answers

Serving Static files from different folders

How can I publish multiple folders on a server to different locations or disks on a server? Example... mydomain.com/files I want /files to be able to see the contents of folders in c:/myvideos or f:/mymusic or / d:/myfiles/myshows like alias in FTP.
0
votes
0 answers

NGINX - reverse proxy but one subfolder to static local directory

I'm having trouble figuring out the basic syntax for proxying most traffic to a local Solr install but leaving one path/dir requests being sent to a static html directory. Do all secondary, tertiary, etc... locations need to be set by regex? Haven't…
0
votes
0 answers

Temporary redirects (302, 307) on a static site, frequently updated

Optional background (to avoid the XY problem): I'm working on a static site which will contain URLs like www.example.com/książka/. The problem with those URLs is that when you share them / paste to an IM program, etc, the diacritic characters are…
automaciej
  • 426
  • 1
  • 6
  • 11
0
votes
0 answers

Is it possible to define "excludes" for check-static in uwsgi settings?

I have an application which I don't want to modify. It has multiple directories with static files which are defined as static via check-static directive in uwsgi's .ini-file. My problem is that each request to /api endpoint checks all directories…
0
votes
0 answers

Nginx alias not working on https but working on http

I hope this is going to be a relatively simple one but I'm stumped and searching through potential solutions haven't helped. I am looking to serve a static (ads.txt) file for my Ghost droplet on DigitalOcean. But there is a problem, as it doesn't…
0
votes
3 answers

We are migrating our wordpress to static site. That is creating over 400,000 folders within 1 folder. Is there any limit to the number of sub-folders?

Our wordpress web site is several years old and has many posts indexed and ranking well on google. With any serious traffic my wordpress server tanks - and this happens even after several rounds of wordpress optimization. We have had enough of…