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

OpenERP 7 not working with Apache2

By
Vishwas Shashidhar
on 8/3/13, 12:12 PM 2,726 views

Hi,

I'm trying to setup OpenERP7 with apache2 on an Ubuntu 12.04 VM.

Server is up and running on 8069 and when i hit domain.com:8069 , everything seems to work well.. However, if i try to use via apache reverse proxy, it doesn't serve any content but a blank page.

Here's my Virtual Host config.

<VirtualHost *:80>
  # Admin email, Server Name (domain name), and any aliases
  ServerAdmin info@domain.com
  ServerName  www.domain.com
  ServerAlias domain.com

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.php
  DocumentRoot /var/www/<domain.com>/public_html/

  ProxyPreserveHost On
  ProxyPass /connect http:// localhost:8069
  ProxyPassReverse /connect http:// localhost:8069

  # Fix IE problem (httpapache proxy dav error 408/409)
  SetEnv proxy-nokeepalive 1

</VirtualHost>

As you can see, I'm trying to use the app as domain.com/connect and it doesn't work.

I have however configured a sub-domain (connect.domain.com) and it works perfectly.

I'm guessing that because of "DocumentRoot", apache is trying to serve the content from /var/www/<domain.com>/public_html/ and is failing.

But if I'm not wrong, ProxyPass should override DocumentRoot.

Any suggestions please?

Thanks.

0
Richard
On 8/4/13, 11:19 AM

Apache2 work fine with OpenERP <virtualhost *:80=""> ServerAdmin info@domain.com ServerName www.domain.com ServerAlias domain.com ProxtRequests Off ProxyPreserveHost On <proxy *=""> Order allow,deny Allow from all </proxy> ProxyPass / http:// localhost:8069/ ProxyPassReverse / http:// localhost:8069/

SetEnv proxy-nokeepalive 1

</virtualhost>

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

0 follower(s)

Stats

Asked: 8/3/13, 12:12 PM
Seen: 2726 times
Last updated: 3/16/15, 8:10 AM