Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

How to redirect website to our own domain?

  • Todos los blogs
  • Tech Blog
  • How to redirect website to our own domain?
  • 5 de marzo de 2021 por
    Administrator

    The ‘root’ of our account on Odoo SAAS is now: https://my-company.odoo.com and this is also the Homepage of the website on the Odoo system.

    How can I link “http://www.my-domain.com” (or another subdomain of my domain) so that it lands on the Odoo Saas root of my account?

    ##############################

     

    With apache2, it is called a redirection (see http://httpd.apache.org/docs/current/rewrite/remapping.html or http://httpd.apache.org/docs/current/mod/mod_alias.htmland http://en.wikipedia.org/wiki/URL_redirection )

    You should also read http://httpd.apache.org/docs/current/mod/mod_proxy.html which is nicer (the reverse proxy).

    A reverse proxy (or gateway), by contrast, appears to the client just like an ordinary web server. No special configuration on the client is necessary. The client makes ordinary requests for content in the name-space of the reverse proxy. The reverse proxy then decides where to send those requests, and returns the content as if it was itself the origin.

    A typical usage of a reverse proxy is to provide Internet users access to a server that is behind a firewall. Reverse proxies can also be used to balance load among several back-end servers, or to provide caching for a slower back-end server. In addition, reverse proxies can be used simply to bring several servers into the same URL space.

    A reverse proxy is activated using the ProxyPass directive or the [P] flag to the RewriteRule directive. It is notnecessary to turn ProxyRequests on in order to configure a reverse proxy.

    Just an example, assuming you need to fake www.my-domain.tld/opendoo to https://my-company.odoo.com :

    # Reverse Proxy for Odoo
    ProxyRequests Off
    SSLProxyEngine on

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

    ProxyPass /opendoo https://my-company.odoo.com
    ProxyPassReverse /opendoo https://my-company.odoo.com

    Not tested but should work…

    CNAME is not an option : it’ll give the good IP address but the Odoo’s server is probably full of vservers, so without the correct address (my-company.odoo.com) it will fail.

    #######################

     

    install virtualmin with nginx for domains

     

     

    en Tech Blog
    Linux Containers and LVM (mount /var/lib/lxc)

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)