Static-files are ones that don't get amended during runtime. This could be a HTML file that's served up by a web server.
Questions tagged [static-files]
769 questions
7
votes
1 answer
serving static files from jwilder/nginx-proxy
I have a web app (django served by uwsgi) and I am using nginx for proxying requests to specific containers.
Here is a relevant snippet from my default.conf.
upstream web.ubuntu.com {
server 172.18.0.9:8080;
}
server {
server_name…

user3732361
- 377
- 8
- 13
7
votes
0 answers
Spring Boot/MVC: How to serve static files outside JAR with special characters?
I am currently working on a project where I need to serve static files residing on file system (outside the JAR-File).
What I currently have:
@Configuration
@ComponentScan({"some.package"})
public class MaboConfiguration extends…

pascalpuetz
- 5,238
- 1
- 13
- 26
7
votes
1 answer
ASP.NET Core - serving static files
I'm following this documentation but I'm getting stuck:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files
Consider my directory structure:
wwwroot
dist
index.html
In my startup class, I have:
public void…

Matthew Layton
- 39,871
- 52
- 185
- 313
7
votes
2 answers
What's the simplest way to serve static files using ASP.NET 5?
I'm trying to create the simplest possible ASP.NET 5 project to serve static files, without depending on Visual Studio project templates. However, when I request a file, I'm only receiving an empty response. Here's my code:
project.json:
{
…

Bryan
- 1,431
- 1
- 17
- 22
7
votes
1 answer
Deploying Golang web app static files with Docker container
I'm working on a small web application that has some static files (configs and html templates):
├── Dockerfile
├── manifest.json
├── session
│ ├── config.go
│ ├── handlers.go
│ └── restapi_client.go
├── templates
│ ├── header.tmpl
│ └──…

Vitaly Isaev
- 5,392
- 6
- 45
- 64
7
votes
1 answer
Route existing static html pages through symfony2
I currently have a live Symfony2.4 application that also links to a directory on our server (called "guides") which is under in the "web" folder. The files in this folder are generated automatically using an external program into plain html files by…

webjem
- 185
- 3
- 8
6
votes
2 answers
Django - Static Files from App Directories
In a development environment, I'd like to use static files from the app directories.
#settings.py
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
STATIC_ROOT = (os.path.join(SITE_ROOT, 'static_files/'))
STATIC_URL =…

Pierre de LESPINAY
- 44,700
- 57
- 210
- 307
6
votes
2 answers
Problems linking to static files in Django 1.3
I'm running django 1.3, python 2.7 on windows XP
I'm trying to setup a css in a static folder for my django app.
The template looks like:
css demo

Mark Irvine
- 1,349
- 14
- 24
6
votes
1 answer
What is the best way to allow users to change templates?
In one of my project, my users will have a dedicated part of my website ({username}.example.org). In that subdomain, I plan to allow them to change the design easily.
I took a look at some online website that already does that, like Tumblr,…

Cyril N.
- 38,875
- 36
- 142
- 243
6
votes
2 answers
Serve static files in blazor hosted project
It is a pretty simple Task, I want to use images in my razor pages which are located in wwwroot/css/images and use it in html like this.
In a normal ASP.Net Core application I would just add app.UseStaticFiles()…


Twenty
- 5,234
- 4
- 32
- 67
6
votes
1 answer
WWWROOT in MVC5
How to achieve same behavior in ASP.NET MVC5 with static files like it works on aspnet-core with app.UseDefaultFiles(); app.UseStaticFiles();?
I mean serving static files from some folder over root, e.g. /wwwroot/some.html must be opened on…

Troll the Legacy
- 675
- 2
- 7
- 22
6
votes
2 answers
How to exclude paths from hashing with ManifestStaticFilesStorage
I am involved in an application that uses whitenoise to serve static files. It is configured to use CompressedManifestStaticFilesStorage which in turn uses ManifestStaticFilesStorage.
By static files, I mean static files we provide, and libraries…

Penguin Brian
- 1,991
- 14
- 25
6
votes
1 answer
What is the correct order in Configuring ASP.NET Core application?
I've got an ASP.NET Core application with several Web Api controllers. I can't tell if there is some connection, but the application was created with VS2015 update 2, and now I'm working with VS2015 update 3.
So I created another Web Api…

Dmitry Volkov
- 1,347
- 1
- 18
- 33
6
votes
1 answer
Static files outside the wwwroot for .netcore app
I'm using https://github.com/ebekker/ACMESharp for my SSL at my @home web-server (it's free! :O). It was pretty manual, but noticed on the wiki it mentioned another project at https://github.com/Lone-Coder/letsencrypt-win-simple which was a GUI for…

Kritner
- 13,557
- 10
- 46
- 72
6
votes
1 answer
Serving static files without going through OWIN
Short:
For each and every request a new OWIN context is created, I would like to be able to prevent this for certain resource types or paths (images, css, js).
Full:
In our application start-up we register a dbcontext creation delegate so that the…

Martijn Kooij
- 1,360
- 13
- 23