Hello. I'm generating project documentation using Sphinx. My workflow is to write docs on the local machine and then push it to the hg repo on webfaction account. The compiled static html is located here: Now I'd like to protect the contents, but it seems that .htaccess is being ignored. The content of
The issue is that the auth window doesn't appear and everyone can read the docs without providing user/pass. What do I do wrong? Thanks asked 14 Oct '11, 03:15 Guandalino |
Hi, Symbolic link apps are being treated as static-only apps. As the app's doc says when you create one: "The files within are served by a shared web server process (typically nginx). This application is exclusively static; PHP files and .htaccess files, for example, will not be interpreted." And that's mostly because they are being served by our nginx frontend which by design doesn't read .htaccess files. One thing you could do would be to create a Static/CGI/PHP5.3 app, named for example sphinx_html, and create a hook on Mercurial to copy your files there (~/webapps/sphinx_html) after a push. answered 14 Oct '11, 03:41 iliasr ♦♦ Thanks for the nice answer. Now it's clear.
(14 Oct '11, 03:47)
Guandalino
|