our Website is still in development. We want to protect it and don't want to
allow people to see it. What's the correct way to enable a passwort protaction
via .htaccess? how can I include this file? Do I have to write a module for
that? What's the content of the .htaccess. Or can someone provide a module
for maintanence mode?
all the best for you guys,
I don't think there is a publicly available module for maintenance mode, although I do think it is a great idea.
I think you could consider setting up Nginx as a reverse proxy and then restrict access to your website to only fixed IP addresses.
Alternatively you can consider using a frontend proxy (such as nginx) and assigning your website to a domain name that is not yet pointed at your server. You could then edit your computer's local hosts file (on a mac it is in /private/etc/hosts, on win 7 it's in C:\Windows\System32\drivers\etc\hosts). For this method you would just need to add your server's main IP address (eg. 123.456.1.2) and the domain you've setup in your /etc/nginx/sites-available/default (or ../sites-available/yourdomainhere.com) on it's own line at the end of your hosts file, for example:
123.456.1.2 yourdomainhere.com www.yourdomainhere.com
this would allow you to develop the website away from public view, while still allowing you to view it as if the domain was actually pointed over to your server.
You can some (very basic) information on setting up Nginx as a reverse proxy for Odoo 8.0 here, although please note that this setup is in no way a production-ready setup:
Is setup basic authentication  satisfy your requirement?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/30/14, 5:59 AM|
|Seen: 1101 times|
|Last updated: 3/16/15, 8:10 AM|