# 访问URL

访问URL允许单个Chamilo安装服务于多个独立的门户。

## 使用场景

* **多租户部署** — 在单个服务器上为不同组织托管独立的培训门户
* **部门门户** — 为每个部门提供自己的品牌门户（例如，`hr.training.company.com`，`it.training.company.com`）
* **区域门户** — 为不同地区或语言设置独立的门户

## 工作原理

每个访问URL是同一Chamilo安装的不同入口点：

* 用户可以被分配到一个或多个访问URL
* 课程和会话属于特定的访问URL
* 平台设置可以按访问URL进行定制
* 品牌和主题可以按URL不同
* 一个门户上的用户无法看到另一个门户上的用户或课程（除非明确共享）

## 配置

### 启用多URL

必须在Chamilo配置中启用多URL（通常在环境设置中）。这通常在初始设置时完成。

### 创建访问URL

1. 从管理面板导航到**访问URL**
2. 点击**添加URL**
3. 输入URL（例如，`https://portal2.yoursite.com`）
4. 配置特定于此URL的设置
5. 保存

### 分配用户和课程

* **用户** — 将用户分配到特定的访问URL。一个用户可以属于多个URL。
* **课程** — 将课程分配到特定的访问URL
* **会话** — 将会话分配到特定的访问URL

### 按URL设置

每个访问URL可以有自己的：

* **颜色主题** — 不同的视觉品牌
* **平台名称和标志** — 自定义身份
* **设置覆盖** — 某些平台设置可以按URL进行定制

## 提示

* **尽早决定** — 如果选择多URL设置，应在Chamilo项目开始时就做出决定，因为这要求第一个URL的内容相对为空。之后启用多URL会更加困难（需要手动更改数据库）。
* **规划URL结构** — 在创建访问URL之前决定URL方案，因为后续更改URL会影响所有现有链接和书签
* **DNS配置** — 每个访问URL必须解析到同一个Chamilo服务器。相应地配置DNS记录。
* **全局管理员** — 使用全局管理员角色管理所有访问URL


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chamilo.org/2.x-zh-cn/guan-li-zhi-nan/admin-guide/multi-url/access-urls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
