Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved domain alias (not redirect)

    Support
    domains
    5
    12
    895
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zedomingues last edited by girish

      due to the good performance configuration, I use cloudron in an instance on AWS (EC2) that shortens links in an mobile application.

      the software (url shorter) works at the following link> uclink.me

      however, the shortener also allows the possibility of using other domains. to do so, I need to configure the 'new domain' as an ALIAS.

      in the cloudron configuration panel I didn't think it was possible to add a domain alias.

      in summary: is it possible to add a domain alias in the CLOUDRON settings? (for the same system can work with both domains).

      tks

      JOduMonT 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @zedomingues I am not 100% sure I understand the question.

        Let's say you have an app app.somecloudron.com. Now you want to use a URL shortener that supports custom domains like foo.com. In such a case, you want to alias foo.com to app.somecloudron.com ?

        If that was the question, you can setup a redirection. Just add foo.com to Cloudron and then set it up as a redirection - https://cloudron.io/documentation/apps/#redirections

        BTW, Cloudron also has a shortener app called YOURLS.

        1 Reply Last reply Reply Quote 1
        • JOduMonT
          JOduMonT @zedomingues last edited by

          @zedomingues said in domain alias (not redirect):

          due to the good performance configuration, I use cloudron in an instance on AWS (EC2) that shortens links in an mobile application.

          the software (url shorter) works at the following link> uclink.me

          however, the shortener also allows the possibility of using other domains. to do so, I need to configure the 'new domain' as an ALIAS.

          in the cloudron configuration panel I didn't think it was possible to add a domain alias.

          in summary: is it possible to add a domain alias in the CLOUDRON settings? (for the same system can work with both domains).

          tks

          Maybe I'm pointing you to the wrong way but at some DNS Manager such as Namecheap let you create ALIAS
          da815c09-123e-4236-a341-c2adfaa32e59-image.png

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zedomingues last edited by

            Just to clarify: I need my server to accept connections from 2 different domains WITHOUT changing the URL.

            That is why I need to know if there is a way to add a DOMAIN ALIAS in cloudron settings, so my server will correctly interpret connection requests from both URLs (like this > https://www.buycpanel.com/difference-domain-alias-domain-redirect/)

            1 Reply Last reply Reply Quote 0
            • Z
              zedomingues @JOduMonT last edited by

              @JOduMonT I will try to find out more in the namecheap documentation. However, from what I've been researching, this configuration has to be done on the server - because the server has to interpret the request and know that that specific URL is configured there.

              For example: there is no way (just) pointing the IP to the server. We (also) must have configure the server to accept connections with that URL - otherwise it will inform famous "not found"

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                @zedomingues You are right, a proper ALIAS requires both an entry in the DNS and also a reverse proxy configuration. The reverse proxy configuration has to be done inside Cloudron. This feature is currently not present (we only have redirects). My experience is that for the reverse proxy config to work, the app also needs to be aware of it (for example, they call it secure domains or have to be taught about multiple domains). Many apps like WP and Nextcloud, do support it but Cloudron doesn't support this. We can look into adding it based on interest. I think https://forum.cloudron.io/topic/2202/multi-domain-for-the-same-app-such-as-nextcloud is a similar request.

                Z mdreira 2 Replies Last reply Reply Quote 2
                • Z
                  zedomingues @girish last edited by

                  it would be an excellent function, @girish

                  unfortunately, I realized that I would not have this function (ALIAS DOMAIN) and I had to stop using cloudron.

                  however, based on my experience, your application is excellent.

                  tks

                  W 1 Reply Last reply Reply Quote 2
                  • W
                    will @zedomingues last edited by

                    @zedomingues Have you considered other ways to achieve this goal?

                    JOduMonT 1 Reply Last reply Reply Quote 0
                    • JOduMonT
                      JOduMonT @will last edited by

                      @will said in domain alias (not redirect):

                      @zedomingues Have you considered other ways to achieve this goal?

                      How would you do this ?
                      Personally I would try to add a new nginx config in /etc/nginx/applications/ which contain

                      server_name other.domain.tld
                      proxy_pass http://127.0.0.1:35611;
                      

                      but the proxy_pass port seams to be non static.

                      Another way, I would two time the apps and pointing them to the same data directory

                      1 Reply Last reply Reply Quote 0
                      • mdreira
                        mdreira translator @girish last edited by

                        @girish I am very interested in this. Hope we can have domain aliases very soon.
                        Please!!! 🤞🏻

                        girish 1 Reply Last reply Reply Quote 0
                        • girish
                          girish Staff @mdreira last edited by

                          @mdreira which app do you need this for ? We already have this in Kutt - https://docs.cloudron.io/apps/kutt/#custom-domains

                          mdreira 1 Reply Last reply Reply Quote 0
                          • girish
                            girish Staff last edited by

                            I created a new topic for reset of the conversation at https://forum.cloudron.io/topic/6191/wp-alias-domains

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Powered by NodeBB