So you want to run Odoo under your domain? Not a problem. In order to do that, you can use Apache (see the tutorial here) or Nginx. This tutorial is step by step guide how to configure Odoo
Please note, that if you want to use
1. Update the system (I know it is not necessary but it is a common practice):
apt-get update
2. Install
apt-get install nginx
3. Enable and run the thing:
systemctl start nginx
systemctl enable nginx
4. Now it is time to configure:
nano etc/nginx/sites-available/yoursite.com
server {
listen 80;
server_name http://yoursite.com;
location / {
proxy_pass http://0.0.0.0:8069;
proxy_redirect off;
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_read_timeout 3000000;
client_max_body_size 2000M;
}
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
}
5. Create a shortcut in sites-enabled :
ln -s /etc/nginx/sites-available/yoursite.com /etc/nginx/sites-enabled/yoursite.com
6. You can now remove the default configuration:
rm -f /etc/nginx/sites-enabled/default
7. Test the Nginx and restart to apply the changes:
nginx -t
service nginx restart
Configuring Nginx with Odoo
Reverse proxy and more
Nginx Odoo Odoo Technical Tutorial