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

[Odoo 9] retrieving ip address public with nginx proxy

By
Mutz Clément
on 9/20/16, 10:15 AM 162 views

Hi,

I use nginx with odoo in same server for using https.

When I access on my website with ip address I see in log nginx :

XX.XX.XXX.XX - - [20/Sep/2016:16:09:24 +0200] "GET /r/h5Y HTTP/1.1" 301 185 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0"

In log odoo I see :

2016-09-20 14:09:24,794 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:24] "GET /r/h5Y HTTP/1.0" 301 -
2016-09-20 14:09:25,289 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /page/financement?& HTTP/1.0" 200 -
2016-09-20 14:09:25,348 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/content/1139-c45ade6/web.assets_common.0.css HTTP/1.0" 200 -
2016-09-20 14:09:25,397 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/content/1153-85fb4db/website.assets_frontend.1.css HTTP/1.0" 200 -
2016-09-20 14:09:25,398 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/content/1152-85fb4db/website.assets_frontend.0.css HTTP/1.0" 200 -
2016-09-20 14:09:25,441 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/content/1154-85fb4db/website.assets_frontend.js HTTP/1.0" 200 -
2016-09-20 14:09:25,452 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/content/1140-c45ade6/web.assets_common.js HTTP/1.0" 200 -
2016-09-20 14:09:25,645 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /logo.png HTTP/1.0" 200 -
2016-09-20 14:09:25,802 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /theme_common/static/src/font/PT_Sans-Web-Regular.ttf HTTP/1.0" 200 -
2016-09-20 14:09:25,888 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /theme_clean/static/src/img/backgrounds/bg_snippet_04.jpg HTTP/1.0" 200 -
2016-09-20 14:09:25,893 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /theme_common/static/src/font/Ubuntu-Regular.ttf HTTP/1.0" 200 -
2016-09-20 14:09:25,900 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.woff2?v=4.4.0 HTTP/1.0" 200 -
2016-09-20 14:09:25,926 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /website/static/src/xml/website.xml HTTP/1.0" 200 -
2016-09-20 14:09:25,999 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:25] "GET /web/static/src/xml/base_common.xml HTTP/1.0" 200 -
2016-09-20 14:09:26,030 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:26] "GET /website/static/src/xml/website.share.xml HTTP/1.0" 200 -
2016-09-20 14:09:26,050 24607 INFO ? werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:26] "GET /website_mail/static/src/xml/chatter_message.xml HTTP/1.0" 200 -
2016-09-20 14:09:26,126 24607 INFO PROD werkzeug: 127.0.0.1 - - [20/Sep/2016 14:09:26] "POST /website/translations HTTP/1.0"

How can I have the ip address in odoo log ?

I need this for mail_tracking addon.


Thank you,

Clement

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

1 follower(s)

Stats

Asked: 9/20/16, 10:15 AM
Seen: 162 times
Last updated: 9/20/16, 10:16 AM