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

    Need a custom home page for an app.

    Nextcloud
    redirect
    3
    8
    601
    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.
    • E
      Enigma84 last edited by girish

      it's not my first time with Nextcloud but it's first time with nginx ...
      I have to redirect nextcloud.domain.com (main login page) to nextcloud.domain.com/s/2342354252 ( a specific share)

      I used to edit .htaccess to poit at redir.html page (page who redirect to my specific link) but now i dont know ho to do that.
      i tried "index directive" under specific nginx config file, but doesnt' work at all.
      i try to open a specific file like nextcloud.domain.com/test.txt but it wont open.
      im open to any advice.

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

        @enigma84 How about installing a surfer app on a separate domain and then edit the index.html of surfer to redirect your share? See https://forum.cloudron.io/topic/3739/how-to-create-an-app-tile-on-the-my-apps-dashboard-with-a-redirect/5 for what you need to put into index.html . Would that work?

        E 1 Reply Last reply Reply Quote 2
        • E
          Enigma84 @girish last edited by Enigma84

          @girish
          In my specific situation i don't want to expose default nextcloud login page.
          Wherever i install nextcloud the default page for that domain will be login page.
          nextcloud.mydomain.com -> login page
          changing index directive for default page to open, i can open a page.
          need some advice to find the right way to change this directive (this settings) only for that specific app (nextcloud subdomain).
          If possible.

          This is what i mean for "index directive"
          http://nginx.org/en/docs/http/ngx_http_index_module.html

          I need also to understand where are stored nextcloud html/php files to add a specific html file into the root

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

            @enigma84 There is /app/data/htaccess that you can edit. Is that what you are looking for?

            E 1 Reply Last reply Reply Quote 0
            • E
              Enigma84 @girish last edited by

              @girish
              yes! i have
              /home/yellowtent/appsdata/c82d.(.................)02a1/data/ a file .htaccess but (if I'm not mistaken) nginx dont use .htaccess at all.

              fbartels 1 Reply Last reply Reply Quote 0
              • fbartels
                fbartels App Dev @Enigma84 last edited by

                @enigma84 inside of the app apache is serving the pages, see https://git.cloudron.io/cloudron/nextcloud-app/-/blob/master/start.sh#L190

                @enigma84 said in Need a custom home page for an app.:

                In my specific situation i don't want to expose default nextcloud login page.

                What is the use case behind this?

                E 1 Reply Last reply Reply Quote 0
                • E
                  Enigma84 @fbartels last edited by

                  @fbartels
                  I use nextcloud as b2b download area, most of the content are public catalogs, price list, tech documents etc. open to everyone. Costumer/Visitor can reach/type download.mydomain.com and open directly a specific sharing folder.

                  For Agents, employee, trusted people, registred user i simply give direct link download.mydomain.com/login -

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

                    @enigma84 Access the htaccess from the File Manager and not directly on the server. It's better/easier that way - https://docs.cloudron.io/apps/#file-manager

                    For nextcloud, you will (confusingly) see two files - htaccess and .htaccess. Do not touch .htaccess since it is for protecting the data directory (/app/data). You can try editing htaccess.

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