Smile Multi Website

by
Odoo
v 11.0 Third Party 124
Download for v 11.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Website Builder (website)
Discuss (mail)
Lines of code 27
Technical Name smile_multi_website
LicenseAGPL-3
Websitehttps://www.smile.fr
You bought this module and need support? Click here!

Smile Multi Website

License: AGPL-3 Smile-SA/odoo_addons

This module adds a menu to configure several websites. Multi-site works without it but it is more user-friendly.

Table of contents

Usage

Websites Menu

website

Local Configuration

If you want to test the multi-site you have to use apache2 (or nginx). Here is a little tutorial:

  • install apache

sudo apt-get install apache2

  • create your first site redirection

cd /etc/apache2/sites-available/

sudo nano odoo1.conf

<VirtualHost *:80>
    ServerName odoo1.fr
    ServerAlias www.odoo1.fr

    ErrorLog ${APACHE_LOG_DIR}/odoo.error.log
    CustomLog ${APACHE_LOG_DIR}/odoo.access.log combined
    LogLevel warn

    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://127.0.0.1:8069/
    ProxyPassReverse / http://127.0.0.1:8069/

    <Location />
        Order allow,deny
        Allow from all
    </Location>

</VirtualHost>
  • create your second site redirection

sudo nano odoo2.conf

<VirtualHost *:80>
    ServerName odoo2.fr
    ServerAlias www.odoo2.fr

    ErrorLog ${APACHE_LOG_DIR}/odoo.error.log
    CustomLog ${APACHE_LOG_DIR}/odoo.access.log combined
    LogLevel warn

    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://127.0.0.1:8069/
    ProxyPassReverse / http://127.0.0.1:8069/

    <Location />
        Order allow,deny
        Allow from all
    </Location>

</VirtualHost>
  • Add your configuration file on the site enable and restart apache

sudo a2ensite odoo1.conf

sudo a2ensite odoo2.conf

sudo service apache2 restart

  • Add your domain on the hosts file

sudo nano /etc/hosts

127.0.0.1       localhost
127.0.0.1       odoo1.fr
127.0.0.1       odoo2.fr

Usage

Connect odoo on localhost:8069 and install the module

On the new website menu (Website/configuration/website) create two site and put your respective domain on the "domain" value.

On the page menu (hidden by default, go to dev mode), edit the Home page.

On the website list, add the localhost website if you want a unique home page for all website

Try to connect on odoo1.fr, odoo will signal that no page exist.

Just click on create page, it will not be visible for your other website.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Smile SA

Contributors

  • Jonathan Dhosy

Maintainers

This module is maintained by the Smile SA.

Since 1991 Smile has been a pioneer of technology and also the European expert in open source solutions.

Smile SA

This module is part of the odoo-addons project on GitHub.

You are welcome to contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.