Coder Social home page Coder Social logo

Comments (1)

pjdevries avatar pjdevries commented on July 30, 2024

Apparently I do not quite understand how the "Reference in new issue" works exactly :) So I apologize for the sloppy issue.

In the comment I refer to above, I assumed that multiple VHhosts in the same NN-extra-hosts.conf file dont't work as expected and separate files have to be created for each and every VHost. Later I found out it actually is possible to have multiple VHosts in a single file, but never found out what caused the initial problem.

Today, after adding a new VHost, I ran into the same problem as before. This time I did discover the cause: a dangling newline at the end of the file. I am in the habit of removing useless newlines at the end of files. Apparently I did not have that before, but this time I did. So I moved the last line to a separate file, to see if it would work. The new VHost was now accessible, but now the last VHost in the file with multiple VHosts wasn't anymore. I then added a newline to that file, resulting in all VHosts being accessible. So I moved the one line back to the multiple VHosts file, made sure there is a dangling newlinen at the end and now all VHosts are accessible from within a single file.

Took some time to figure this one out, but at least there is a solution. I didn't investigate any further why this happens though. After all, one does not expect the absence of a dangling newline to cause such a problem.

from docker-lamp.

Related Issues (14)

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.