ชื่อโดเมน

ชื่อโดเมนคือที่อยู่แบบข้อความซึ่งระบุตำแหน่งออนไลน์ เช่น เว็บไซต์ สิ่งเหล่านี้มอบวิธีการท่องอินเทอร์เน็ตที่น่าจดจำและเป็นที่จดจำแก่ผู้คนมากกว่าที่อยู่ IP ที่เป็นตัวเลข

Odoo Online และ Odoo.sh ฐานข้อมูลใช้ โดเมนย่อย ของ odoo.com โดเมน ตามค่าเริ่มต้น (เช่น mycompany.odoo.com)

อย่างไรก็ตาม คุณสามารถใช้ชื่อโดเมนแบบกำหนดเองแทนได้โดย การจดทะเบียนชื่อโดเมนฟรี (ใช้ได้เฉพาะกับฐานข้อมูล Odoo Online เท่านั้น) หรือโดย การกำหนดค่าชื่อโดเมนที่คุณเป็นเจ้าของอยู่แล้ว

จดทะเบียนชื่อโดเมนฟรีกับ Odoo

To register a one-year free domain name for your Odoo Online database, sign in to your account and go to the database manager. Click the (gear) button next to the database name and select Domain Names.

การเข้าถึงการกำหนดค่าชื่อโดเมนของฐานข้อมูล

ค้นหาชื่อโดเมนที่ต้องการและตรวจสอบความพร้อม

ค้นหาชื่อโดเมนที่มีอยู่

Tip

ตรวจสอบให้แน่ใจว่าได้ติดตั้งแอปเว็บไซต์แล้วหากตัวเลือกการจดทะเบียนชื่อโดเมนไม่แสดงขึ้น

Select the desired domain name, fill in the Domain Owner form, and click Register. The chosen domain name is directly linked to the database.

กรอกข้อมูลเจ้าของโดเมน

Next, you should map your domain name to your Odoo website.

Important

อีเมลยืนยันจาก noreply@domainnameverification.net จะถูกส่งไปยังที่อยู่อีเมลที่ให้ไว้ในแบบฟอร์ม เจ้าของโดเมน จำเป็นต้องยืนยันที่อยู่อีเมลของคุณเพื่อให้โดเมนใช้งานได้และรับใบเสนอราคาการต่ออายุก่อนหมดอายุ

การจดทะเบียนชื่อโดเมนฟรีในปีแรก หลังจากช่วงเวลานี้ Odoo จะยังคงจัดการโดเมนต่อไปโดยร่วมมือกับ Gandi.net ซึ่งเป็นผู้รับจดทะเบียนชื่อโดเมน และคุณจะถูกเรียกเก็บเงิน อัตราการต่ออายุของ Gandi.net. Odoo ส่งใบเสนอราคาการต่ออายุทุกปีไปยังที่อยู่อีเมลที่ระบุไว้ในแบบฟอร์ม เจ้าของโดเมน หลายสัปดาห์ก่อนวันหมดอายุของโดเมน โดเมนจะต่ออายุโดยอัตโนมัติเมื่อใบเสนอราคาได้รับการยืนยัน

Note

  • ข้อเสนอนี้ใช้ได้กับฐานข้อมูล Odoo Online เท่านั้น

  • ข้อเสนอนี้จำกัดเพียง หนึ่งชื่อ ชื่อโดเมนต่อลูกค้าหนึ่งราย

  • ข้อเสนอนี้จำกัดเฉพาะการจดทะเบียนชื่อโดเมน ใหม่

  • ข้อเสนอนี้มีให้สำหรับแผน หนึ่งแอปฟรี ตรวจสอบให้แน่ใจว่าเว็บไซต์ของคุณมีเนื้อหาต้นฉบับเพียงพอสำหรับ Odoo เพื่อตรวจสอบว่าคำขอของคุณถูกต้องตามกฎหมายและเคารพ นโยบายการใช้งานที่ยอมรับได้ของ Odoo เนื่องจากคำขอมีจำนวนมาก Odoo อาจต้องใช้เวลาหลายวันในการตรวจสอบ

บันทึก DNS

To manage your free domain name DNS records, open the database manager, click the (gear) button next to the database name, select Domain Names, and click DNS.

  • A: บันทึก A เก็บที่อยู่ IP ของโดเมน มันถูกสร้างขึ้นโดยอัตโนมัติและ ไม่สามารถ แก้ไขหรือลบได้

  • CNAME: บันทึก CNAME ส่งต่อโดเมนหรือโดเมนย่อยหนึ่งไปยังโดเมนอื่น โดเมนหนึ่งจะถูกสร้างขึ้นโดยอัตโนมัติเพื่อจับคู่โดเมนย่อย www. กับฐานข้อมูล หากเปลี่ยนชื่อฐานข้อมูล บันทึก CNAME ต้อง ถูกเปลี่ยนชื่อด้วย

  • MX: บันทึก MX จะสั่งให้เซิร์ฟเวอร์ทราบว่าควรส่งอีเมลไปที่ใด

  • TXT: บันทึก TXT สามารถใช้เพื่อวัตถุประสงค์ที่แตกต่างกันได้ (เช่น เพื่อยืนยันความเป็นเจ้าของชื่อโดเมน)

การแก้ไขบันทึก DNS อาจใช้เวลาถึง 72 ชั่วโมง เพื่อเผยแพร่ทั่วโลกบนเซิร์ฟเวอร์ทั้งหมด

Note

Contact Odoo support if you need assistance to manage your domain name.

Mailbox

ข้อเสนอชื่อโดเมนฟรีหนึ่งปี ไม่ รวมกล่องจดหมาย มีสองตัวเลือกในการเชื่อมโยงชื่อโดเมนของคุณกับกล่องจดหมาย

ใช้โดเมนย่อย

คุณสามารถสร้างโดเมนย่อย (เช่น subdomain.yourdomain.com) เพื่อใช้เป็นโดเมนนามแฝงสำหรับฐานข้อมูลได้ อนุญาตให้ผู้ใช้สร้างบันทึกในฐานข้อมูลจากอีเมลที่ได้รับในนามแฝง email@subdomain.yourdomain.com

To do so, open the database manager, click the (gear) button next to the database name and select Domain Names. Click DNS, then Add DNS record and select CNAME. Next, enter the desired subdomain in the Name field (e.g., subdomain), the original database domain with a period at the end (e.g., mycompany.odoo.com.) in the Content field, and click Add record.

จากนั้น เพิ่มโดเมนนามแฝงเป็น โดเมนของคุณเอง ของคุณโดยคลิก ใช้โดเมนของฉันเอง ป้อนโดเมนนามแฝง (เช่น subdomain.yourdomain.com) คลิก ตรวจสอบ จากนั้น ฉันขอยืนยันว่าเสร็จแล้ว

สุดท้าย ไปที่ฐานข้อมูลของคุณแล้วเปิด Settings ใต้ช่อง โดเมนนามแฝง ให้ป้อนโดเมนนามแฝง (เช่น subdomain.yourdomain.com) คลิก สร้าง จากนั้น บันทึก

ใช้ผู้ให้บริการอีเมลภายนอก

To use an external email provider, you should configure an MX record. To do so, open the database manager, click the (gear) button next to the database name and select Domain Names. Click DNS, then Add DNS record and select MX. The values you should enter for the Name, Content, and Priority fields depend on the external email provider.

Google Workspace

To use your free domain name on Gmail, register to Google Workspace.

During the registration process, select Set up using your existing domain when asked to Choose a way to set up your account, and enter your domain (e.g., yourdomain.com) when asked What's your business's domain name?.

Domain ownership verification
  1. Sign in to Google Workspace. When asked to verify you own your domain, click Switch to manual verification.

    Switching to manual domain verification on Google Workspace
  2. Select gandi.net as the Domain host and click Continue.

    Selecting the domain host on Google Workspace
  3. Copy the content of the Value field under TXT record. Leave the window open.

    Copying the TXT value on Google Workspace
  4. Open the database manager, click the (gear) button next to the database name and select Domain Names. Click DNS, then Add DNS record and select TXT.

  5. Enter @ in the Name field, paste the Value provided by Google in the Content field, and click Add record.

    Creating a TXT record to verify domain name ownership
  6. Go back to Google Workspace, tick the box at the bottom, and click Confirm.

Redirect emails to Gmail
  1. Open the database manager, click the (gear) button next to the database name and select Domain Names. Click DNS, then Add DNS record, and select MX.

  2. Enter @ in the Name field, 1 in the Priority field, smtp.google.com. in the Content field, and click Add record.

    Creating an MX record to redirect emails to Gmail
  3. Open the Google Workspace Admin console, click Activate Gmail for your domain, and follow the steps.

กำหนดค่าชื่อโดเมนที่มีอยู่

หากคุณมีชื่อโดเมนอยู่แล้ว คุณสามารถใช้ชื่อโดเมนนั้นกับเว็บไซต์ Odoo ของคุณได้

Warning

ขอแนะนำอย่างยิ่งให้ปฏิบัติตาม ตามลำดับ สามขั้นตอนเหล่านี้เพื่อหลีกเลี่ยงปัญหา การตรวจสอบใบรับรอง SSL:

  1. เพิ่มบันทึก CNAME

  2. Redirect your naked domain name (optional, but recommended)

  3. จับคู่ชื่อโดเมนของคุณกับฐานข้อมูล Odoo ของคุณ

  4. จับคู่ชื่อโดเมนของคุณกับเว็บไซต์ Odoo ของคุณ

เพิ่มบันทึก CNAME

Adding a CNAME record to forward your domain name to the address of your Odoo database is required.

ที่อยู่เป้าหมายของบันทึก CNAME ควรเป็นที่อยู่ฐานข้อมูลของคุณตามที่กำหนดไว้ตอนสร้าง (เช่น mycompany.odoo.com)

คำแนะนำเฉพาะขึ้นอยู่กับบริการโฮสต์ DNS ของคุณ

Redirect a naked domain

Note

Although optional, completing this step is advised.

To let visitors use your naked domain name (a domain name without any subdomains or prefixes) (yourdomain.com), creating a 301 redirect (a permanent redirect from one URL to another) to www.yourdomain.com is required:

  • from http://yourdomain.com to https://www.yourdomain.com, and

  • from https://yourdomain.com to https://www.yourdomain.com.

The specific instructions depend on your DNS hosting service. However, not all of them offer to redirect a naked domain with a secure HTTPS connection. If you encounter any issue, we recommend using Cloudflare.

Using Cloudflare to secure and redirect a naked domain

  1. Sign up and log in to Cloudflare.

  2. Enter your domain name on Cloudflare's dashboard and select Quick scan for DNS records.

  3. Choose a plan (the free plan is sufficient).

  4. Follow Cloudflare's instructions and recommendations to complete the activation.

  5. Add a CNAME record to redirect your naked domain (yourdomain.com) to the www subdomain (e.g., www.yourdomain.com) by clicking DNS in the navigation menu, then clicking the Add record button, and using the following configuration:

    • Type: CNAME

    • Name: @ (or yourdomain.com)

    • Target: e.g., www.yourdomain.com

    • Proxy status: Proxied

    Adding a CNAME DNS record to Cloudflare to redirect a naked domain to a www subdomain
  6. Add another second CNAME record to redirect the www subdomain (e.g., www.yourdomain.com) to your database address (e.g., mycompany.odoo.com) using the following configuration:

    • Type: CNAME

    • Name: e.g., www.yourdomain.com

    • Target: e.g., mycompany.odoo.com

    • Proxy status: DNS only

    Adding a CNAME DNS record to Cloudflare to redirect a www subdomain to an Odoo database
  7. Define a redirect rule to permanently redirect (301) your naked domain (e.g., yourdomain.com) to both http:// and https:// by going to Rules ‣ Create rule ‣ Products, and clicking Create a Rule under Redirect Rules:

    • Enter any Rule name.

    • Under the If incoming requests match... section, select Custom filter expression and use the following configuration:

      • Field: Hostname

      • Operator: equals

      • Value: e.g., yourdomain.com

    • Under the Then... section, use the following configuration:

      • Type: Dynamic

      • Expression: e.g., concat("https://www.yourdomain.com", http.request.uri.path)

      • Status code: 301

      • Preserve query string: enabled

    Defining a Cloudflare redirect rule to create a permanent redirect (301)
  8. Go to SSL/TLS and set the encryption mode to Full.

    Setting the encryption mode to full on Cloudflare

แมปชื่อโดเมนกับฐานข้อมูล Odoo

Warning

ตรวจสอบให้แน่ใจว่าคุณได้ เพิ่มบันทึก CNAME ไปยัง DNS ของชื่อโดเมนของคุณ ก่อน ที่จะแมปชื่อโดเมนของคุณกับฐานข้อมูล Odoo ของคุณ

การไม่ดำเนินการดังกล่าวอาจขัดขวางการตรวจสอบความถูกต้องของ ใบรับรอง SSL และอาจส่งผลให้เกิดข้อผิดพลาด ชื่อใบรับรองไม่ตรงกัน เว็บเบราว์เซอร์มักจะแสดงสิ่งนี้เป็นคำเตือน เช่น "การเชื่อมต่อของคุณไม่เป็นส่วนตัว"

If you encounter this error after mapping the domain name to your database, wait up to five days, as the validation may still happen. If not, you can submit a support ticket, including screenshots of your CNAME records.

Open the database manager, click the (gear) button next to the database name, select Domain Names, and click Use my own domain. Then, enter the domain name (e.g., www.yourdomain.com), click Verify and I confirm, it's done.

การแมปชื่อโดเมนกับฐานข้อมูล Odoo Online

การเข้ารหัส SSL (โปรโตคอล HTTPS)

การเข้ารหัส SSL ช่วยให้ผู้เยี่ยมชมสำรวจเว็บไซต์ผ่านการเชื่อมต่อที่ปลอดภัย ซึ่งแสดงเป็นโปรโตคอล https:// ที่จุดเริ่มต้นของที่อยู่เว็บ แทนที่จะเป็นโปรโตคอล http:// ที่ไม่ปลอดภัย

Odoo สร้างใบรับรอง SSL แยกต่างหากสำหรับแต่ละโดเมน แมปกับฐานข้อมูล โดยใช้ Let's Encrypt's ในการออกใบรับรองและโปรโตคอล ACME.

Note

  • การสร้างใบรับรองอาจใช้เวลามากถึง 24 ชั่วโมง

  • มีการพยายามตรวจสอบใบรับรองของคุณหลายครั้งเป็นเวลาห้าวันหลังจากที่คุณแมปชื่อโดเมนกับฐานข้อมูลของคุณ

  • หากคุณใช้บริการอื่น คุณสามารถใช้บริการต่อไปหรือเปลี่ยนเป็นของ Odoo ได้

Important

ไม่มีการสร้างใบรับรอง SSL สำหรับโดเมนเปล่า (ชื่อโดเมนที่ไม่มีโดเมนย่อยหรือคำนำหน้า)

URL ฐานเว็บของฐานข้อมูล

Note

หากมีการติดตั้งแอปเว็บไซต์บนฐานข้อมูลของคุณ ให้ข้ามส่วนนี้และดำเนินการต่อจากส่วน แมปชื่อโดเมนกับส่วน ของเว็บไซต์

URL ฐานเว็บ หรือ URL รากของฐานข้อมูลส่งผลต่อที่อยู่เว็บไซต์หลักของคุณและลิงก์ทั้งหมดที่ส่งถึงลูกค้าของคุณ (เช่น ใบเสนอราคา ลิงก์พอร์ทัล และอื่นๆ)

หากต้องการทำให้ชื่อโดเมนแบบกำหนดเองของคุณเป็น URL ฐานเว็บ ของฐานข้อมูลของคุณ ให้เข้าถึงฐานข้อมูลของคุณโดยใช้ชื่อโดเมนแบบกำหนดเองของคุณ และเข้าสู่ระบบในฐานะผู้ดูแลระบบ (ส่วนผู้ใช้ของกลุ่มสิทธิ์การเข้าถึงการตั้งค่าภายใต้การดูแลระบบ)

Important

หากคุณเข้าถึงฐานข้อมูลของคุณด้วยที่อยู่ Odoo เดิม (เช่น mycompany.odoo.com) URL ฐานเว็บ ของฐานข้อมูลของคุณจะได้รับการอัปเดตตามนั้น เพื่อป้องกันการอัปเดตอัตโนมัติของ URL ฐานเว็บ เมื่อผู้ดูแลระบบล็อกอินเข้าสู่ฐานข้อมูล ให้เปิดใช้งาน โหมดนักพัฒนาซอฟต์แวร์ ไปที่ การตั้งค่า ‣ เทคนิค ‣ พารามิเตอร์ระบบ ‣ ใหม่ และป้อน web.base.url.freeze เป็น รหัส และ จริง เป็น ค่า

Note

คุณยังสามารถตั้งค่า URL ฐานเว็บได้ด้วยตนเอง โดยเปิดใช้งาน โหมดนักพัฒนาซอฟต์แวร์ ไปที่ การตั้งค่า ‣ เทคนิค ‣ พารามิเตอร์ระบบ และค้นหาคีย์ web.base.url (สร้างขึ้นหากจำเป็น) และป้อนที่อยู่เว็บไซต์ของคุณแบบเต็มเป็นค่า (เช่น https://www.yourdomain.com) URL ต้องมีโปรโตคอล https:// (หรือ http://) และ not ลงท้ายด้วยเครื่องหมายทับ (/)

แมปชื่อโดเมนกับเว็บไซต์ Odoo

การแมปชื่อโดเมนของคุณกับเว็บไซต์ของคุณแตกต่างจากการแมปชื่อโดเมนกับฐานข้อมูลของคุณ:

  • กำหนดชื่อโดเมนของคุณเป็นชื่อหลักสำหรับเว็บไซต์ของคุณ ช่วยให้เครื่องมือค้นหาจัดทำดัชนีเว็บไซต์ของคุณได้อย่างถูกต้อง

  • โดยจะกำหนดชื่อโดเมนของคุณเป็น URL พื้นฐานสำหรับฐานข้อมูลของคุณ รวมถึงลิงก์พอร์ทัลที่ส่งทางอีเมลถึงลูกค้าของคุณ

  • หากคุณมีหลายเว็บไซต์ ระบบจะจับคู่ชื่อโดเมนของคุณกับเว็บไซต์ที่เหมาะสม

ไปที่ เว็บไซต์ ‣ การกำหนดค่า ‣ การตั้งค่า หากคุณมีหลายเว็บไซต์ ให้เลือกเว็บไซต์ที่คุณต้องการกำหนดค่า ในช่อง โดเมน ให้ป้อนที่อยู่เว็บไซต์ของคุณ (เช่น https://www.yourdomain.com) และ บันทึก

Warning

การแมปชื่อโดเมนของคุณกับเว็บไซต์ Odoo จะป้องกันไม่ให้ Google Search สร้างดัชนีที่อยู่ฐานข้อมูลเดิมของคุณ (เช่น mycompany.odoo.com)

หากที่อยู่ทั้งสองได้รับการจัดทำดัชนีแล้ว อาจต้องใช้เวลาระยะหนึ่งก่อนที่การจัดทำดัชนีของที่อยู่ที่สองจะถูกลบออกจาก Google Search คุณสามารถใช้ Google Search Console เพื่อแก้ไขปัญหาได้

Note

หากคุณมีเว็บไซต์และบริษัทหลายแห่งในฐานข้อมูลของคุณ ตรวจสอบให้แน่ใจว่าได้เลือก บริษัท ที่ถูกต้องภายใต้ เว็บไซต์ -> การกำหนดค่า -> การตั้งค่า การทำเช่นนี้จะระบุ Odoo ว่า URL ใดที่จะใช้เป็น ฐาน URL ตามบริษัทที่ใช้งาน