Code Monkey home page Code Monkey logo

Comments (2)

lipanski avatar lipanski commented on August 28, 2024 1

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.

johnb8005 avatar johnb8005 commented on August 28, 2024 1

Thank you. I could successfully update my project too

from docker-static-website.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.