Community mailing list archives

community@mail.odoo.com

Re: Convert Port to string

by
hacene.meziani
- 11/02/2016 12:27:59
Antonio Mas, I have already done this, but this works only for one entreprise, it will not work for many.
Pedro M. Baeza (Tecnativa),  : I had this this idea, but it doesn't plaised me, becauce I want the name of the entreprises at the end ( as in my exemple) but  I have another Idea, is to programme some php or HTML pages withing appach and to make redirections to this entreprises as bellow:
in appach: I create a page: at www/mysite/entrepses1/index.php   and this page will make a redirection to www.mysite.com:8069
But at the end the port will be shown and it will not be hidden

Thank you so much

2016-11-02 16:58 GMT+01:00 Antonio Mas <amas@interpreta.es>:
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.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe