Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Any suggestions how to protect the website

By
Malte Helmhold
on 10/30/14, 5:59 AM 1,101 views

Hi guys,

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,

Malte

0

Luke Branch

--Luke Branch--
1531
| 6 7 8
Mui Wo, Lantau, Hong Kong
--Luke Branch--

...

Luke Branch
On 11/1/14, 2:23 AM

@Malte,

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:

https://www.odoo.com/forum/help-1/question/how-to-show-the-manage-database-page-for-particular-user-like-administrator-in-openerp-v8-57036#answer-64772

 

0

Ben Bernard

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 10/31/14, 1:22 AM

Is setup basic authentication [1] satisfy your requirement?

 

[1] https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html

 

0

Stephen Mack

--Stephen Mack--
5023
| 8 8 9
Santiago, Chile
--Stephen Mack--

Some people call me a karma whore, I only ask for 10 points if you like my answer and 15 if I happen to get it correct.

Stephen Mack
On 10/30/14, 8:11 AM

No but you could change the port that odoo responds on so that it is more difficult to find it or use a reverse proxy server to direct traffic away from it.  Just a few suggestions.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 10/30/14, 5:59 AM
Seen: 1101 times
Last updated: 3/16/15, 8:10 AM