Comments (2)
Fixed in this commit and released as latest
and 2.1.0
.
The issue was the following: "Error pages are only parsed on the main config file". What this means is that the conf file has to be passed to httpd
via the -c
argument. That's how you point to the main file.
In order to avoid having users of the Dockerfile to include this every time, I added a blank httpd.conf
as the main file. You can simply include an override in your project root and that's it:
FROM lipanski/docker-static-website:latest
# Copy your static files
COPY . .
Or alternatively you can be explicit about the CMD
line:
FROM lipanski/docker-static-website:latest
# Copy your static files
COPY . .
CMD ["/busybox", "httpd", "-f", "-v", "-p", "3000", "-c", "httpd.conf"]
Also note that the error page path should be relative, like E404:e404.html
or E404:some-subdirectory/e404.html
.
from docker-static-website.
Thank you. I could successfully update my project too
from docker-static-website.
Related Issues (17)
- Allow overriding path served from an environment variable HOT 1
- How to echo content into httpd.conf file? HOT 1
- How to change encoding
- Hide index.html and .html from url? HOT 3
- simple redirect routing configuration HOT 1
- propagate signals from image itself using tini (not sure if it's correct for busybox but something similar could be done maybe) HOT 1
- Directory Index BB httpd conf option (I:default.htm) doesn't work
- request: serve static files from a docker volume HOT 3
- Arm builds? HOT 2
- Hosting behind Traefik under a path prefix HOT 1
- thttpd CGI configuration fails HOT 4
- File permissions on Windows HOT 1
- Add license HOT 1
- logi HOT 1
- enable gzip compression HOT 2
- ARM image HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-static-website.