Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
3619 มุมมอง

I have an OpenCart ecommerce (PHP) installed on a website subolder (let's say myweb.com/store1/). I now want to build a new independent store on myweb.com/store2/ but this time using Odoo. Is this possible? The site is on VPS Linux hosting and I have full access to it.

I'm a complete newbie on this subject so please be as specific as you can.

Thanks for your help!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

An easy and supported way is to use subdomains. Changing Odoo's default routes is for sure not an easy task and nothing what should be asked by a newbie.

อวตาร
ละทิ้ง

I'm new to Odoo deployment. May I confirm, do you recommend using Subdomains (company1.example.com) rather than Subdirectory (example.com/company1) ?

คำตอบที่ดีที่สุด

Hello,

The answer is no ?;  a specific domain name is required.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Use virtual host. If you're on a Apache HTTP server:
 

<VirtualHost *:80>
   ServerName openerp.website.com  
   ServerAlias openerp.website.com www.openerp.website.com
   ProxyPass / http://localhost:8069/
   ProxyPassReverse / http://localhost:8069/
</VirtualHost>

<VirtualHost *:80>
    ServerName mywebsitewritteninphp.com
    ServerAlias mywebsitewritteninphp.com www.mywebsitewritteninphp.com
    DocumentRoot /var/www/myphpwebsite
</VirtualHost>

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thank you very much for your help! As you say, It is a hard thing to do, but not an impossible task (I could hire someone to do it when the time comes).

Is that correct?

อวตาร
ละทิ้ง

I don't know. But I know I would not do it, especially as I can not see much sense in it. There are for sure other choices, be it by organisational design or by use of means of reverse proxies.