Skip to content

route setting server https error #195

Closed

Description

@gitwangliang

PHP Version

8.3.13

Swoole Extension Version

6.1

Database Driver & Version

No response

Description

route setting server https error

Steps To Reproduce

route('home',[], true, 'https')

Activity

  1. albertcht commented on Aug 19, 2025

    @albertcht
    Member

    Please read instructions before you submit an issue.

    Image

    And this issue doesn't provide any helpful details. Please note that any issues with not enough info label will be ignored and closed after 3 days.

  2. added
    not enough infoA maintainer has requested additional information from the reporter.
    on Aug 19, 2025
  3. gitwangliang commented on Aug 20, 2025

    @gitwangliang
    Author

    Hello, thank you for your reply
    This issue occurs when attempting to generate an HTTPS link
    When the default is route(' home ', [], true,' http ') this situation is normal and can run successfully
    When using route('home ', [], true,' https'), it will prompt 'home' as defined

  4. albertcht commented on Aug 20, 2025

    @albertcht
    Member

    Hi @gitwangliang , the third parameter for route function is not for setting scheme. It's corresponding with the server name in config/server.php, and developers normally don't need to change it.

    The scheme in route function will follow the scheme of your current request.

  5. gitwangliang commented on Aug 21, 2025

    @gitwangliang
    Author

    @albertcht How to correctly generate HTTPS links when using nginx HTTPS forwarding to hypervel HTTP hypervel

  6. albertcht commented on Aug 21, 2025

    @albertcht
    Member

    @albertcht How to correctly generate HTTPS links when using nginx HTTPS forwarding to hypervel HTTP hypervel

    You can only replace the scheme from returned url manually at this moment.

  7. locked and limited conversation to collaborators on Aug 21, 2025
  8. converted this issue into a discussion #197 on Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    not enough infoA maintainer has requested additional information from the reporter.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions