Custom Domain Configuration
Why Configure a Custom Domain
EasyAdmin8-webmandefaults todomain+/adminas the admin URL, which may be common and insecure. To prevent exposure risks, it is recommended to configure a custom domain
Configuration Reminder
-
Configure the custom domain only after the admin system has been successfully installed
-
After configuring a custom domain, the original
domain/adminaccess method will automatically become invalid, and vice versa
How to Configure a Custom Domain
-
Open the
.envfile, setEASYADMIN.ADMIN_DOMAIN_STATUStotrue, and setEASYADMIN.ADMIN_DOMAINto your desired domain, e.g.,admin0x5Uy.xxx.com -
If the framework has a homepage or other application pages, configure their corresponding domains as well in
config/plugin/webman/domain/app.php -
Then configure reverse proxy for the domain in
Nginx[adjust according to your actual project]
- Related documentation: https://www.workerman.net/plugin/11
