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.

6

How to serve http static files?

By
Franco Tampieri
on 3/17/13, 8:46 PM 3,743 views

Hi how can use that parameters: Static HTTP service: --static-http-enable :enable static HTTP service for serving plain HTML files --static-http-document-root=STATIC_HTTP_DOCUMENT_ROOT :specify the directory containing your static HTML files (e.g '/var/www/') --static-http-url-prefix=STATIC_HTTP_URL_PREFIX :specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')

I'm interested to serve the static files in openerp by a reverse proxy linke nginx, but I don't understand how, can someone show me an example?

Regards

Same question. Following the instructions, we changed the static http part of opnerp-server.conf as below - static_http_enable = True static_http_document_root = /opt/www/ static_http_url_prefix = / What's URL to browse the static html files under /opt/www/ ?

Shanghai Open Stone Co., LTD., Oliver Yuan
on 4/3/13, 1:11 AM

I was going through the code in file service/http_server.py and I noticed that there's a function named init_static_http() which seems to do the job of registering a StaticHTTPHandler, but I can see no instruction calling that function. Could that be why the static serving is not working?

Yusuf
on 5/13/13, 10:30 AM

thread help.openerp.com/question/43563/reverse-proxy-to-subdirectory-hostdomaintldexternalerp raises the same issue but has no answer just yet.

Stefan Reichel
on 2/14/14, 12:51 PM

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

3 follower(s)

Stats

Asked: 3/17/13, 8:46 PM
Seen: 3743 times
Last updated: 8/26/15, 6:52 AM