Questions tagged [static-content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
38 views

Optimizing an Azure App Service for Static Content

I have a "Basic" Azure App Service Plan hosting multiple App Services. One of those App Services contains exclusively static content (i.e., html, css, js, png, &c.). Question What server-side ...
1
vote
0answers
27 views

apache fail to serve static files when ipv6 enabled

I have apache 2.4 running on openSUSE, has been working great for years. A few weeks ago I upgraded from openSUSE 15.0 to 15.1, and suddenly apache would fail to serve static files. I found that if I ...
2
votes
1answer
92 views

IIS refuses to serve static .gltf files

I am using three.js library with GLTFLoader.js. I downloaded some free 3D model with .gltf extension (it also came with a .bin file, and a folder with textures). I can access every other file in this ...
0
votes
1answer
24 views

Have Apache send a response defined in the configuration file

I would like my Apache VirtualHost to respond with the same content, no matter the URL requested. I know it is possible with an additional file containing the static response (https://askubuntu.com/a/...
0
votes
1answer
299 views

mod_speling Case Insensitive URLs not working

I have a ServerPilot server, running on Ubuntu 16.04.3 On it is an app that is a Wordpress website, but has other non-wordpress directories. In these directories is what I am concerned about. I ...
1
vote
2answers
105 views

How to manage static content for high-loaded website via nginx?

My understanding is that nginx is well-suited for serving static content. But i can't find any information with regard to how well it's for serving very big amount of static content. Let's say i use ...
0
votes
1answer
35 views

serving a WordPress website downloaded from Chrome?

I used Chrome to download a website (using "Menu -> More tools -> Save page as ...".); I want to ftp the html file (renamed to index.html) and the files folder into a static http server and have a ...
2
votes
1answer
116 views

Best way to add authentication layer to static file requests?

I am trying to figure out the best way to add an authentication check to requests for static assets on my server. I am running Apache2.4 and PHP/Laravel, which runs by serving static content ...
0
votes
0answers
2k views

How to stop Spring Boot project running on Tomcat server to re-depeloy it-self each time I change static resources?

I have Maven Spring Boot Project that I configured to run on Tomcat 8.5 server. I run and develop it in Eclipse Java EE IDE. pom.xml is: <?xml version="1.0" encoding="UTF-8"?> <project ...
1
vote
0answers
572 views

Nginx & NodeJs slow static file serving

I have a small NodeJS app, with an Nginx front to serve the static files to increase performance. The bundle.js file takes around 1s with no load, however, add some concurrent users and the bundle.js ...
1
vote
1answer
605 views

Redirecting .app domain to Amazon S3 bucket (SSL)

I'm currently hosting a static website on an Amazon s3 bucket (i.e. https://s3.eu-east-2.amazonaws.com/MyApp/index.html) and I have recently bought an .app domain which I would like to redirect to the ...
0
votes
1answer
184 views

Performance of Static website on Google Cloud Storage

I have some low-traffic static websites to host. As an alternative to hosting them on my own or self-managed web servers (eg AWS, Google Cloud, or Digial Ocean machines running Apache or Nginx), I'm ...
0
votes
0answers
495 views

Nginx: disable caching if page contains the word

I am using nginx as a reverse proxy. Is it possible somehow to access response page content as a variable to disable caching for a pages that have specific word in content (not in header) WITHOUT ...
0
votes
1answer
834 views

Serving Static Content with Apache2

I am really new to apache2 and have previously worked with Nginx. I am trying to use alias in apache2 to serve static content. Starting off with a simple example. I tried this out and it didn't ...
1
vote
1answer
1k views

Nginx: / for both static content and proxied application

http://example.com: my site http://example.net: the proxied backend I'm trying to setup an nginx server block as both a static content server and a reverse proxy. Nginx should first check for static ...
0
votes
1answer
4k views

Do I need to configure SVG images showing in nginx?

I have SVG images in a folder and also a single PNG file to make sure these images are shown on the page. My nginx config is basically this: server { listen 80; location / { root ...
3
votes
1answer
6k views

Nginx not serving CSS correctly in simple PHP project

I've seen several examples of this now: Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3001/assets/css/bootstrap.min.css". But, I've not been able to ...
0
votes
1answer
1k views

Nginx Reverse Proxy static content and relative pass issue

I have the next setup: Main server main.com and additional standalone server (additional.com), which should be served via proxy from the subpage url keeping relative paths, etc. main.com/additional ...
1
vote
1answer
334 views

How to serve a huge static and pregenerated website?

My current web project has the following characteristics: A website which is basically a read-only archive of information. There are no interactive actions a visitor could do. All pages (currently ...
0
votes
2answers
409 views

Configure nginx to serve static files

I'm trying to serve static files(HTMLs, JS and CSS) from a Google compute engine instance running Debian 8. I used git to clone the web app to the folder /var/www/prod/app with command sudo git ...
1
vote
1answer
835 views

Nginx+PHP-FPM: Let php handle file extensions

I am trying to serve a PHP script that handles some RESTful URIs and to know which format end user needs data, I handled that as the extension in the URI, eg.: example.com/foo/bar.json?q=x&a=y --&...
0
votes
2answers
661 views

How do I configure apache2 to serve static assets from server root subdirectory?

Front end developer here - I just inherited a server (Mac Pro) to host my prototypes within our network. There's already an apache server set up on it, but I don't know much about it's config. This ...
0
votes
1answer
51 views

Static resources can't be loaded, what's wrong in this Nginx setup?

In a Docker container running PHP71-FPM and Nginx I have the following setup for Nginx: server { listen 80 default_server; listen 81 default_server http2 proxy_protocol; ## Needed ...
0
votes
3answers
555 views

nginx proxy pass location from static vhost

I have a reverse proxy (80/443) and a back-end application (8015/44315). Both run on nginx. The reverse dynamic vhost works fine but I have an little issue with a classic static vhost... rp vhost ...
7
votes
1answer
8k views

Reverse proxy application and its static files with Nginx

I am trying to do something that seems to me very simple but I must be stupid or miss something very obvious because I cannot figure it out. I want to access the multiple web applications running on ...
0
votes
0answers
401 views

Preventing nginx static content to be both on cookie-less subdomain and main domain

UPDATE: Removing the rule below solves the unnecessary redirection. Now it just works fine. Though it is still reachable from two places, a canonical header solves the duplicate issue i guess. I ...
1
vote
3answers
1k views

How to make nginx try_files get html resources in a timely way

Using nginx 1.8.1 on an Amazon Linux EC2 instance. Using as a reverse proxy to support https for Apache running on a different instance. All is working fine, except for this issue. I want to serve a ...
1
vote
2answers
3k views

Allowing all headers in CORS

I want to configure my Apache 2.4 to serve some static resources in a CORS-friendly way. I already have the following setting: Header always set Access-Control-Allow-Origin "*" However, for recent ...
0
votes
1answer
678 views

Proxy static content only for proxyed requests

I have an apache serving one local app on "/" with its static files on "/static" And another app with mod_proxy: ProxyPreserveHost On ProxyPass "/example" "http://127.0.0.1:9090/" ProxyPassReverse "...
9
votes
3answers
4k views

Serve static content using docker + nginx + php-fpm

I'm trying to configure a php webapp using docker. The idea is to run the app using php-fpm in a standalone container and have another container that will run nginx. The idea for this setup is to use ...
0
votes
1answer
2k views

Nginx - serving static files

What am I doing wrong here? This works: location / { alias /var/www/static/; try_files $uri index.html =404; } But this doesn't: location /hello { alias /var/www/static/; try_files ...
1
vote
1answer
1k views

Nginx serve static files for flask app 404

I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. Somewhere in between all ...
0
votes
0answers
64 views

IIS appends /web.config at the end of static files

I am trying to debug a 401 error in IIS that happens when serving static files to an anonymous user. Let's say I'm trying to access https://example.com/sso.css. That file physically resides on D:\...
1
vote
0answers
27 views

Site farm server with multiple users - best aproach

I am buliding kind a hosting server for static sites, and i am wondering is it better and for what reasons to: 1) use linux users ( i dont need ssh or something advanced function, there is only ...
0
votes
1answer
1k views

How can I serve a binary file with executable permission via nginx?

I'm serving a Go binary located in /var/www/bin/binary: location ~ (binary) { root /var/www/bin; } However, when I download it with wget http://example.com/binary, I can't run it right away, ...
1
vote
0answers
65 views

Route content using nginx if a specific condition is met

I have 2 LAN networks which are united w/ IPSec tunnel: 10.10.10.1/24 10.10.20.1/24 One of my internal sites is running on 10.10.10.50, which is serving users heavy content, such as 300-400MB ...
0
votes
1answer
464 views

Serve a static page if the backend is down [duplicate]

Apache is acting as a frontend to another (Rails) server that is responsible for handling the requests. How can I make Apache return a static maintenance page when the backend is down (or unreachable ...
2
votes
2answers
14k views

Apache serving static files within VirtualHost

I have the following VirtualHost configuration. <VirtualHost *:80> ServerName myservername.website <Location /> ProxyPass http://localhost:5000/ ...
13
votes
3answers
2k views

Access Amazon S3 Static Website Through IPv6

I host a static website on Amazon S3 with DNS hosted on Amazon Route 53. I'd like my site to be accessible via IPv4 and IPv6 (because it's about time). When I use the Route 53 AWS Management Console ...
2
votes
1answer
5k views

S3 Static Website hosting - restricting access from IP Range

Is there way by which can we enforce the access only from a Particular IP Range for S3 Static Website hosted site ?
2
votes
2answers
8k views

Nginx location block - only match actual files

I have the following nginx config: server { listen 8080; root /site_root/web; index index.html; server_name www.mysite.com; location / { try_files $uri @rewriteapp; ...
8
votes
3answers
7k views

Can I use nginx environment variables within static files that nginx serves?

If I use a environment variable in the nginx config, and nginx is configured to serve only static files (html,js,css - e.g. a AngularJs app), is there any way I can use the environment variable within ...
1
vote
1answer
90 views

bind9 + lighttpd: Accept all requests coming from certain name servers and reply with static page

So, I've this situation: A server (under CentOS) with a lot of domains with around 2 TB of data under them, and I'm migrating it all to another machine with faster I/O. The migration details / ...
3
votes
2answers
4k views

Nginx reverse proxy in nested locations

I'm using Nginx as a reverse proxy for multiple applications in multiple servers and I'm trying to add common cache directives to static files of each application. My original configuration is ...
1
vote
1answer
199 views

Apache2 proxy to serve a static page

I would like to stand up an apache2 proxy server (proxy.domain.internal 10.2.2.10) to do the following: Transparently serve local content (http://proxy.domain.internal:8085/arbitraryContent) to local ...
0
votes
1answer
352 views

A server cluster for static files

I apologize in advance if this question may (by necessity) be somewhat broad. I will try my best to keep it in the format of a valid question. I am currently setting up a backend for serving large ...
0
votes
2answers
860 views

Nginx rewrite location internally to serve static content

I'm trying to serve static content from an endpoint that differs in hierarchy structure than the actual root directory structure. This is the result I'm trying to achieve: 0.0.0.0/Claw/scripts/main....
1
vote
1answer
999 views

varnish file download fail from user session

I have 2 varnish 3.0.4 servers on edge of an Apache cluster (fallback director). On one of my sites, users log in to download static content such as pdf, images (jpg,jpeg,png, gif), xls/xlsx etc. All ...
3
votes
1answer
3k views

How to avoid Error 403 Forbidden : Apache virtual host configuration issue

I am quite a newbie to the Apache Server (2.0, I know it is a bit too old, however my workplace demands me to learn it as it is the version we are using)and now trying to get Apache work with Jboss (...
5
votes
2answers
15k views

Django doesn't find CSS files for admin pages using uWSGI

Even if I followed the official instructions, when I start a Django test site using uWSGI, CSS files for the admin interface are not loaded. If I open the URL of a CSS file, for example http://...