246 questions
0
votes
2
answers
320
views
SvelteKit handle a static image folder
I build an anonymous board with SvelteKit, it can handle the user uploaded image, and save it to path like <project_folder>/static/images/abc.jpg, and we can access it with a URL http://...
0
votes
1
answer
838
views
What qualifies as 'static content' in Next.js (Pages Router)?
I am working on a T3 app with the following build structure:
Route (pages) Size First Load JS
┌ ○ / 22.1 kB 160 kB
├ /...
0
votes
1
answer
125
views
JustPy QuasarPage - where do I put the favicon file in my project tree?
Problem statement
I'm trying to set the favicon for my QuasarPages in a JustPy web app, adding the attribute favicon="book_icon_32.png" to my QuasarPage. When looking at the page source in ...
3
votes
0
answers
1k
views
Serve Static Content with Spring Boot 3
Hello dear Stack Overflow community,
I have a Spring Boot web app that was previously packaged as a WAR file, my static content was placed inside a webapps/resources folder ( apart from thymeleaf ...
0
votes
1
answer
131
views
Multiple retrieve-marker inside fo:static-content
In one of the sample code I am seeing:
<fo:static-content flow-name="rest-page-footer" font-family="Arial" font-style="normal" font-size="4">
<fo:...
0
votes
0
answers
373
views
How can I run nginx on project files on windows? [duplicate]
I am trying to run NGINX locally on my windows computer.
I installed the pkg from https://nginx.org/en/download.html & un zipped it to my c drive and tried to run nginx -v and i got this err
**...
1
vote
1
answer
463
views
Is middleware necessary when only serving static files?
This is really a philosophical question; I'm curious what the community thinks. I'm not so concerned with the how; but rather the why.
Let's say I want to set up a super simple web server to serve ...
2
votes
1
answer
725
views
Serve static content with webflux and multiple wildcards
I want to serve react app with routes from Spring Boot with WebFlux and functional routing.
I'm trying to implement following rules:
There are few /api endpoints that should be routed with functions.
...
4
votes
0
answers
3k
views
How to handle dynamic images with Next
Next.js documentation says:
"Only assets that are in the public directory at build time will be served by Next.js. Files added at runtime won't be available. We recommend using a third party ...
1
vote
1
answer
185
views
Ts.ED simple static server surprise 404 failure
I have a SPA who I was developing with Ts.ED and, with I don't know what change, completely stopped serving the static content. I reduced as much as possible the code to even make an exposition ...
3
votes
0
answers
262
views
Best approach to serve user protected files - Node.js, Express server
I would like to know what is the best way to serve private(to an user) files from my Express server (API).
Every user may have associated files that contain private data and should not be available ...
0
votes
1
answer
615
views
Magento 2 change static content folder
Is it possible to rename static content folder? f.e from ../pub/static to /pub/statix
I saw 'base url for static view files' setting in the admin panel, but if I set it to {{secure_base_url}}/statix/ ...
0
votes
1
answer
144
views
For static domain files, cookies are still attached. How to solve? ASP.NET , IIS 10
My application is ASP.NET 4.5 Website : https://www.monstermmorpg.com/
I serve all the static content from a static domain https://static.monstermmorpg.com
However cookies are still getting attached ...
2
votes
0
answers
299
views
How to disable access to certain static files from /resources/META-INF/resources in production using Quarkus?
Im having a small html page in my META-INF/resources to test certain things in my development environment with gradle quarkusDev.
ContainerRequestFilters don´t get called when static content is being ...
3
votes
0
answers
1k
views
Springboot statc content : None of the document roots [src/main/webapp, public, static] point to a directory
I'm running a springboot jar application, and I'm facing some issues accessing static content from it.
I placed my static content under src/main/resources/static and it is getting copied to the jar as ...
0
votes
0
answers
360
views
IIS stopped serving static content over a certain (small) size
I'm really hoping somebody can help apply some sanity to this IIS issue that has been driving me crazy. I seem to be experiencing the same problem as the poor soul in this thread: https://forums.iis....
1
vote
0
answers
91
views
How to host static content from Jboss EAP 7.1 slave in HA cluster?
I have JBoss running in clustered mode. I access the application via load balancer URL. As per specifications, JBoss EAP 7.1 serves the static content from welcome-content directory. I have a file ...
0
votes
2
answers
619
views
How to store frequently changing static files in Cloudfront?
I have some static image files that we use for our campaigns. The problem is that the marketing team changes the files very frequently and they take time to update in cloudfront cache. Is cloudfront ...
0
votes
1
answer
357
views
Static Content error debbug in localhost with VisualStudio
I have added some mime that I needed for my project in MVC5 because in production it did not work.
<system.webServer>
<staticContent>
<mimeMap fileExtension=".woff&...
0
votes
1
answer
2k
views
How to configure static index.html in Wildfly which has ReactJs code
I have build my ReactJS Application with npm build and final I have bundle.js and other dependencies which is bundled using with Babel and webpack modules.
In my final dist folder which has index....
0
votes
0
answers
594
views
Serving lots of images from a flask server
I am trying to design a site using Flask for a store and need to serve the customers with lots of product pictures.
I came across this stack overflow answer that said:
In production, you don't want ...
1
vote
2
answers
10k
views
how to serve static content in springboot 2.2.6?
I am newbie to Springboot and I am trying to display html page on its root(localhost:8080) path. To do so I googled and gone through -
Spring Boot not serving static content
https://spring.io/blog/...
1
vote
2
answers
1k
views
Spring serves static content as application/json no matter what
I have a simple Spring Boot app with a static content. I would like the browsers to cache not all but just some of the types, like css. So I added following configuration:
@Override
public void ...
1
vote
1
answer
337
views
How to serve static content in spring boot when servlet path is defined in config
I've noticed when specifying servlet path, serving static content doesn't work out of the box. In fact, I haven't been able to get it to work in any way. Here's a part of my application.properties ...
1
vote
1
answer
2k
views
Unable to serve static content with nginx. Getting 403 forbidden error
I have a node.js project, working with nginx acting as a reverse proxy. I'm trying the configure nginx to serve static content. Both nginx and node.js are docker containers. I've tried to use the ...
1
vote
1
answer
758
views
How to pass username and password in image URL HTML.?
How to pass username and password as a variable in image URL HTML and angular 6?
I tried this but I am getting error.
http://......./folder/img.jpg@httpOptions
2
votes
1
answer
3k
views
Spring Boot Context Path Static Files Not Found
I have a problem with my application not finding my static files. This however only happens on a certain level. As you can see from the code fragments below, the css, images, js, etc works on certain ...
0
votes
1
answer
439
views
Simplest way to serve static data from outside the application server in a Java web application BUT In WEB LOGIC
I found answer here,
Simplest way to serve static data from outside the application server in a Java web application
it is excellent solution and working fine in my case also.
But my application is ...
6
votes
1
answer
4k
views
Why ignores nginx my "auth_basic off" for sub-path location directive?
Nginx (docker image, 1.17.2) requires a basic authentication for a subpath. Although my config says otherwise for https://example.org/subpath:
// /etc/nginx/conf.d/mysetup.conf
ssl_session_cache ...
2
votes
1
answer
3k
views
Could not read config file while deploying static content in Magento 2?
It shows error in FileResolver file.
0
votes
1
answer
285
views
How to add static resource location for files from server but different that server where app is
Im building spring-boot 2 App and want to know if i can and how to add static resources location for the server files but different that server where app is.
Im using application.properties file to ...
0
votes
1
answer
706
views
ASP.Net Core 2.2 wwwroot static content hosted on S3 and CloudFront
I am using ASP.Net Core 2.2 and would like to host wwwroot static content on AWS S3 served by CloudFront. Haven't found anything on Google so posted the question here. I am familiar with AWS S3 and ...
0
votes
2
answers
2k
views
How to serve static content in a Java web app from internal server?
It's a standard (possibly trivial) situation, but I cannot find detailed information on the topic.
Suppose we have a web application A (http://my-webapp) and a file server F (http://file-server).
...
0
votes
1
answer
1k
views
TomEE+ 8.0 - OperationNotSupportedException: Context is read only]
Using TomEE+ 8.0 (Tomcat 9.0.12) in local Eclipse IDE and remote CentOS server. The application starts normally locally and previously started normally on the remote server. Now after changes adding a ...
1
vote
1
answer
581
views
Loading Static Content pdf2Html Itext 7
Good afternoon.
I am trying to load static content for my Html to PDF converstion using Itext 7's PdfHTML add-on.
At this point I am just doing a hello world example following the boilerplate example ...
2
votes
1
answer
9k
views
ResourceHttpRequestHandler : resource not found / image from local directories
I am using Spring Boot. I try using images from local resources to show it on webpage.
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation....
1
vote
0
answers
145
views
Integrating static content when testing Gitlab pages with a local Jekyll installation
I have built a Gitlab Pages site using the Start Bootstrap Creative theme. The theme has some static files, which reside in their own directory tree at static. When the site is deployed, content ...
0
votes
1
answer
3k
views
How to serve static files over HTTPS
I have been scratching my head for way too long with this one - my issue is rather trivial however I cannot really figure it out myself: how does one serve static files over HTTPS in Go?
So far I ...
1
vote
1
answer
2k
views
Nginx points to the incorrect folder location
I im trying to configure nginx to serve images on request. Consider the following config below;
sites-available/images.conf
server {
listen 8888;
server_name localhost;
location ...
17
votes
2
answers
14k
views
Difference between Cloudflare CDN and NGINX
I am reading but having hard time understand difference between the two. I am using Heroku for my apps and until now I was using NGINX to serve my content. I precompressed my static files to gzip and ...
5
votes
2
answers
11k
views
Allow POST request in nginx server for static content
We have an Angular application deployed to DigitalOcean => Ubuntu => Nginx, => www folder, this accepts all the GET request. We call some third party API, and in reponse the third party hits our ...
1
vote
1
answer
809
views
How to get cherrypy to serve static files from the index and a static directory, with custom paths as well?
I have a directory structure that looks like this:
project/
index/
about.html
index.html
forum.html
profile.html
settings.html
apple-touch-icon.png
...
1
vote
0
answers
292
views
How to configure Wildfly to serve static content (like images) with some authentification?
Undertow 4 in Wildfly 10 can add some kind of authentication to limit the access to static resources:
Example:
http://localhost/img/my_img.jpg -> will return will return 401 Forbidden
http://...
2
votes
1
answer
1k
views
Spring boot not automatically serve index.html after setting spring.mvc.static-path-pattern value
I have checked this post 41354724 and reset the static-path-pattern to /expense/**. I am expecting to get index.html when I hit the URL endpoint /expense/ instead of /expense/index.html
Here is my ...
0
votes
1
answer
773
views
Tomcat is not serving static content within application directory
I am using Tomcat 9.0.6 on Ubuntu 16.04 running on java-1.8.0-openjdk-amd64.
The application serves a page which contains a URL to pdf file that supposed to display a pdf file in a browser when user ...
-1
votes
2
answers
913
views
How to enable folder level cache on IIS 7.5?
I have a virtual directory on IIS7.5, it has .mp4 files.
I want to enable caching at folder level, so that videos can play without buffering. Can the following "web.config" be used? I want to place ...
2
votes
0
answers
662
views
Is it possible to serve Favicon from the root folder in ASP.NET Core MVC?
In ASP.NET Core MVC these ways are possible to serve Favicon:
Place favicon in wwwroot and then serve it using /favicon path
Place it in a custom folder, and then use PhysicalFileProvider to configure ...
8
votes
1
answer
9k
views
Packing static content in Nuget for PackageReference projects
I have a Class Library (net47) project and I'd like to pack into a nuget my dll and several files of static content (js, css, images...). I want to use this dll and the content from the consumer ...
1
vote
0
answers
59
views
Make static cell in tableviewcontroller bring up composed mail when pressed
I would like to make the "Leave a Suggestion" static cell open the mail and allow me to compose a message with a set subject. How would I accomplish this?
EDIT:
import UIKit
import MessageUI
class ...
0
votes
2
answers
58
views
Optimising page loads using a single storage bucket
I have a Google Cloud Storage bucket mywebsite-static. Due to browser restrictions on max parallel HTTP connections, I would like to create multiple DNS records in such a way that I can access files ...