It is currently Mon May 21, 2012 4:50 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Need help to configure HTTPS with erp5.0.6 on ubuntu8.04LTS
PostPosted: Thu Feb 11, 2010 5:47 pm 
Offline

Joined: Tue Jan 12, 2010 4:15 pm
Posts: 4
Hello Everybody,

I have installed and configured openerp 5.0.6 on ubuntu8.04LTS server. It's working perfectly.

In addition to that I am trying to configure HTTPS for my openerp server (https://192.168.1.100) since two days but still not successful. Can anybody please guide me with the step by step approach to configure it?

Waiting for your reply.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 11, 2010 6:30 pm 
Offline

Joined: Wed Feb 16, 2005 12:26 pm
Posts: 2574
Location: Annecy & Toulon,France
Hello,

do you mean https for client-web or https as a support of ssl layer for xml-rpc-secure protocole ?
regards

_________________
SISalp's free openerp hosting http://openerp-online.fr/1-openerp-on-l ... atuit.html


Top
 Profile  
 
 Post subject: Need help to configure HTTPS with erp5.0.6 on ubuntu8.04LTS
PostPosted: Fri Feb 12, 2010 10:06 am 
Offline

Joined: Tue Jan 12, 2010 4:15 pm
Posts: 4
Hello Dominique ,

Thanks for your mail.

Honestly! I am a newbie for openerp, I have never ever used it. But I have done the installation and configuration with the help of some online documentations. Thanks to the GOOGLE..!!!!

And yes I mean https for client-web. I have already gone through various online stuffs but still could not get success.

Also please suggest me which one will be the more secure from https for client-web and https as a support of ssl layer for xml-rpc-secure.

Please help me..!!!!!!

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Need help to configure HTTPS with erp5.0.6 on ubuntu8.04
PostPosted: Fri Feb 12, 2010 10:30 am 
Offline

Joined: Wed Feb 16, 2005 12:26 pm
Posts: 2574
Location: Annecy & Toulon,France
manojb wrote:
Also please suggest me which one will be the more secure from https for client-web and https as a support of ssl layer for xml-rpc-secure.


htpps for client web encrypts communication between your web browser and client-web server which is connected to openerp-server
xml-rpc-secure encrypts communication between your openerp-client and openerp-server.
To enable https for client-web, you can use a web server like apache2 and use its proxy function. Apacahe2 on-line documentation is excellent.
To enable xml-rpc-secure, create your rsa/dsa keys and put them at the root of your server, then start it with --secure option.
hope this helps.

_________________
SISalp's free openerp hosting http://openerp-online.fr/1-openerp-on-l ... atuit.html


Top
 Profile  
 
 Post subject: Need help to configure HTTPS with erp5.0.6 on ubuntu8.04LTS
PostPosted: Fri Feb 12, 2010 1:54 pm 
Offline

Joined: Tue Jan 12, 2010 4:15 pm
Posts: 4
Hi Dominique,

As you said I have tried with Apache2 and used its proxy function also. But still no luck. Please go through my below apache2 and openerp-web config files which I am using on my server and please suggest me if I am doing anything wrong or missing anything within it.


STEP - 1
========
# vim /etc/apache2/sites-available/default

NameVirtualHost *:80
<VirtualHost>
ServerName amerpweb.com
ServerAlias *.amerpweb.com
ServerAdmin webmaster@localhost
Redirect / https://amerpweb.com
DocumentRoot /var/www/
<Directory>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

----------END----------END---------------------

STEP - 2
========
$ sudo a2enmod proxy

$ sudo a2enmod proxy_http

$ sudo a2enmod proxy_connect

$ sudo a2enmod proxy_ftp

$ sudo vi /etc/hosts
192.168.1.98 www.amerpweb.com www

STEP - 3
========
$ sudo vi /etc/apache2/sites-available/default-ssl

<VirtualHost>
ServerAdmin webmaster@localhost
ServerName amerpweb.com

<Proxy>
Order deny,allow
Allow from all
</Proxy>

ProxyRequests Off

ProxyPass / http://127.0.0.1:8080
ProxyPassReverse / http://127.0.0.1:8080

</VirtualHost>

STEP - 4
========
$ sudo /etc/init.d/apache2 restart

STEP - 5
========
Added below lines in:
------------------------------
$ sudo vi /etc/openerp-web.cfg
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
base_url_filter.base_url = "https://amerpweb.com"

$ sudo /etc/init.d/openerp-we restart

My HTTPS config for openerp serve is end up with this. But still for URL :"https://amerpweb.com" my Firefox displaying "Address Not Found" error.

Please help me...!!!!!!!!!!!!!!!!! Please.

Waiting for your reply.


Top
 Profile  
 
 Post subject: allinone for linux includes apache-ssl
PostPosted: Sat Feb 13, 2010 9:29 pm 
Offline

Joined: Fri Aug 14, 2009 1:51 pm
Posts: 24
Location: Madrid, Spain
http://opensourceconsulting.wordpress.c ... or-ubuntu/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2010 1:02 pm 
Offline

Joined: Thu Apr 17, 2008 8:00 am
Posts: 183
@manojb: di you get it running?

I don't see any obvious errors in your config.

Where did you come across:
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
base_url_filter.base_url = "https://amerpweb.com"
I do not see these in the std config file.

You've also tried tools.proxy.on=true ?

I've been using as a guideline:
http://doc.openerp.com/install/linux/we ... web-client
I can connect and login via https, but the website is all wrong, CSS seems to be missing and links don't work.

I think the CSS is broken because /cp_widgets/openerp/css/treegrid.css cannot be found (issues connecting to 127.0.0.1)

Sean


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2010 4:08 pm 
Offline

Joined: Thu Apr 17, 2008 8:00 am
Posts: 183
So I found a solution for myself anyway, add trailing slash to ProxyPass, i.e.
in /etc/apache2/sites-enabled/ssl
Code:
        ProxyPass        /   http://127.0.0.1:8080/
        ProxyPassReverse /   http://127.0.0.1:8080/
        RequestHeader set "X-Forwarded-Proto" "https"
        # Fix IE problem (http error 408/409)
        SetEnv proxy-nokeepalive 1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP