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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Need a custom home page for an app.

Need a custom home page for an app.

Scheduled Pinned Locked Moved Nextcloud
redirect
8 Posts 3 Posters 1.7k Views 4 Watching
  • 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 Offline
      E Offline
      Enigma84
      wrote on last edited by girish
      #1

      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.

      girishG 1 Reply Last reply
      0
      • E Enigma84

        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.

        girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #2

        @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
        2
        • girishG girish

          @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 Offline
          E Offline
          Enigma84
          wrote on last edited by Enigma84
          #3

          @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

          girishG 1 Reply Last reply
          0
          • E 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

            girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #4

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

            E 1 Reply Last reply
            0
            • girishG girish

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

              E Offline
              E Offline
              Enigma84
              wrote on last edited by
              #5

              @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.

              fbartelsF 1 Reply Last reply
              0
              • E Enigma84

                @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.

                fbartelsF Offline
                fbartelsF Offline
                fbartels
                App Dev
                wrote on last edited by
                #6

                @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
                0
                • fbartelsF fbartels

                  @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 Offline
                  E Offline
                  Enigma84
                  wrote on last edited by
                  #7

                  @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 -

                  girishG 1 Reply Last reply
                  0
                  • E Enigma84

                    @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 -

                    girishG Do not disturb
                    girishG Do not disturb
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    @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
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search