# sso-demo
**Repository Path**: peng49/sso-demo
## Basic Information
- **Project Name**: sso-demo
- **Description**: 单点登录示例
- **Primary Language**: PHP
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2020-08-19
- **Last Updated**: 2025-08-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# sso-demo
#### 介绍
单点登录的PHP实现流程
#### apache httpd-vhosts.conf 文件配置
添加如下内容
```
ServerName "sso.me"
DocumentRoot "E:/web/sso/sso"
Options FollowSymLinks ExecCGI
AllowOverride None
Order deny,allow
Allow from all
ServerName "app01.me"
DocumentRoot "E:/web/sso/app01"
Options FollowSymLinks ExecCGI
AllowOverride None
Order deny,allow
Allow from all
ServerName "app02.me"
DocumentRoot "E:/web/sso/app02"
Options FollowSymLinks ExecCGI
AllowOverride None
Order deny,allow
Allow from all
ServerName "app03.me"
DocumentRoot "E:/web/sso/app03"
Options FollowSymLinks ExecCGI
AllowOverride None
Order deny,allow
Allow from all
```
DocumentRoot 需替换为对应的路径
#### hosts文件配置
添加如下内容
```
127.0.0.1 sso.me app01.me app02.me app03.me
```
#### 参考
[单点登录(SSO)看这一篇就够了](https://www.jianshu.com/p/75edcc05acfd)