Skip to content

Redirect the default /welcome context using nginx #1694

Closed

Description

@Dnhatsave

Helo everyone,

I have a address were a like to host the onlyoffice eg: https://www.example/url .

I look that by default the onlyoffice comes with /welcome context eg: http:my-ip:my-port/welcome
I want to know how can i redirect or rewrite the default (/welcome) context to work at my environment like that: https://www.example/url/welcome

I've tried to use rewrite settings on nginx:

location /welcome/ {
    rewrite ^(.*)$ http://172.31.4.114:28096/colab/welcome/ redirect;
  }

But it gives me 404 Error not found as can you see at screenshoot
Screenshot from 2022-03-21 12-14-21

Activity

  1. ShockwaveNN commented on Mar 21, 2022

    @ShockwaveNN
    Contributor

    I'm not 100% sure because I'm not good with all nginx setup, but I think you need reverse proxy for that

    I think all other parts of DocumentServer may be related to that part and if you move only /welcome page - all other URLs that DocumentServer uses will be confused

    I'll move this to DocumentServer repo and convert to discussion, since it's not an issue per-se
    Maybe someone will be able to help with exact configs

  2. locked and limited conversation to collaborators on Mar 21, 2022
  3. converted this issue into a discussion #1695 on Mar 21, 2022
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions