Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Apache mod_mime's default httpd/x-unix-directory Content-Type should be unset #1197
Now it looks like default:
So this has nothing to do with my issue with custom start file etc. which work now when I set the PassengerAppRoot, thanks! :)
I see the issue. Apache's mod_mime sets Content-Type to httpd/x-unix-directory whenever it notices that the current URL maps to a directory. Usually the web app overrides this Content-Type by providing its own Content-Type header, but node-env doesn't do that. The browser sees the httpd/x-unix-directory Content-Type and tries to download it.
You can work around this by disabling mod_mime. I'll modify 4.0.45 to unset the httpd/x-unix-directory header.