Community mailing list archives
Re: Convert Port to stringby
Interpreta solucions empresarials S.L., Toni Mas
El 02/11/16 a las 16:17, Hacene MEZIANI escribió: > Dear Community, > > I'd like to know if it is possible to convert a port to string for > exemple: port 8069 to string "entreprise 1", port 8070 to " entreprise2"... > I have one VPS with only one IP. and in this VPS i have installed two > instances of Odoo 10. > > - www.mysite.com:8069 ( for entreprise1 ) > - www.mysite.com:8070 ( for entreprise2) > > What I want to guet is: > - www.mysite.com/entreprise1 > - www.mystie.com/entreprise2 > > > Thank you. > Hello. You can do it with a HTTP server listening on 80 and redirecting to the corresponding Odoo server. For example: https://httpd.apache.org/docs/2.4/rewrite/remapping.html https://www.nginx.com/blog/creating-nginx-rewrite-rules/ Regards.