Skip to Content
Menu
This question has been flagged
2 Replies
3258 Views

My websites don't work in incognito/private browsers. When I connect to the domain I just get the database selector. If I try to access a site like domain.com/home I get the error: "The requested URL was not found on the server."


I'm using a reverse proxy that redirects to my odoo server and on the server I have nginx that directs to the correct db. The SSL is handled on the reverse proxy that then sends the request to my server on port 80. 


I don't know a lot about nginx so maybe I did something wrong. How can I fix this


odoo.conf

[options]

; This is the password that allows database operations:

admin_passwd = NOTHING

db_host = False

db_port = False

db_user = odoo

db_password = False

db_filter = ^%h$

db_list = False


addons_path = /opt/odoo/odoo12/addons,/opt/odoo/customaddons


xmlrpc_port = 8069

longpolling_port = 8072

proxy_mode = True


; Logging

; log_levels: error, debug, error, info, warn

logfile = /var/log/odoo/odoo.log

log_level = warn

logrotate = True


Nginx vhost

server {

        listen 80;

        server_name domain.com;


        access_log  /var/log/nginx/domain.com.access.log;

        error_log   /var/log/nginx/domain.com.log;


        proxy_buffers 16 64k;

        proxy_buffer_size 128k;


        client_max_body_size 24000M;

        proxy_read_timeout 720s;

        proxy_connect_timeout 720s;

        proxy_send_timeout 720s;


        # Proxy Headers

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_redirect off;


        location / {

                proxy_pass  http://odoo;

                proxy_read_timeout 300000;

        }


        location /longpolling {

                proxy_read_timeout 300000;

                proxy_connect_timeout 75s;

                proxy_pass http://odoo-lp;

        }

}


nginx.conf

user www-data;

worker_processes auto;

pid /run/nginx.pid;

include /etc/nginx/modules-enabled/*.conf;


events {

        worker_connections 768;

        # multi_accept on;

}


http {

        # Custom Settings

        proxy_connect_timeout 900;

        proxy_send_timeout 900;

        proxy_read_timeout 900;

        send_timeout 900;


        sendfile on;

        tcp_nopush on;

        tcp_nodelay on;

        keepalive_timeout 65;

        types_hash_max_size 2048;


        include /etc/nginx/mime.types;

        default_type application/octet-stream;


        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

        ssl_prefer_server_ciphers on;


        access_log /var/log/nginx/access.log;

        error_log /var/log/nginx/error.log;


        gzip on;

        gzip_disable "msie6";


        upstream odoo {

                server 127.0.0.1:8069 weight=1 fail_timeout=3000s;

        }

        upstream odoo-lp {

                server 127.0.0.1:8072;

        }


        include /etc/nginx/conf.d/*.conf;

        include /etc/nginx/sites-enabled/*;

}





Avatar
Discard
Author

setting launch option --no-database-list in my odoo.servise, doesn't help. Just get same window with "The database manager has been disabled by the administrator"

Author Best Answer

The config parameter was wrong db_filter is dbfilter in config 

Avatar
Discard
Related Posts Replies Views Activity
3
Oct 24
197
0
Jun 24
321
2
Dec 23
12010
0
Oct 23
33
3
Oct 23
787