246 questions
0
votes
2
answers
311
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
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 ...
0
votes
1
answer
124
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:...
1
vote
1
answer
462
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 ...
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 ...
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
137
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 ...
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 ...
1
vote
0
answers
88
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
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
0
answers
593
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
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
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 ...
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 ...
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 ...
0
votes
1
answer
281
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
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).
...
1
vote
1
answer
578
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 ...
1
vote
0
answers
141
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 ...
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 ...
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
0
answers
286
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://...
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 ...
2
votes
0
answers
658
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 ...
1
vote
0
answers
56
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 ...