Comments (1)
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)
- Implementation of iconv is not correct? HOT 1
- How do I change the location of the www directory? HOT 4
- Problem with PHP cURL HOT 2
- Xdebug profiling; volume for xdebug.output_dir HOT 5
- Command docker-compose or docker compose | without or with hyphen HOT 2
- How to activate getimagesize HOT 4
- getopt: illegal option -- o HOT 11
- Issues after moving from WSL2 to Kubuntu HOT 15
- No problem with docker-lamp, HOT 3
- Which branch do you ideally use at the moment when reinstalling docker-lamp? HOT 3
- docker-lamp <command> --help HOT 1
- Can macros be used for the automaticaly creation of vhosts for specific PHP versions? HOT 4
- Not all SSL certificates created HOT 9
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-lamp.