Skip to content

使用反向代理后 form action 域名不正确 #27

@otcpage

Description

@otcpage

1.首先设置 laravel APP_URL=a.domain
2.在 AppServiceProvider boot 中添加 app('url')->forceRootUrl(env('APP_URL'));
3.在 a.domain 服务器将流量转到 admin ip
然后访问 a.domain/admin 后台中所有form action地址仍然是IP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions