ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    OwnCloud Sub Domain

    IT Discussion
    owncloud web server
    4
    6
    1.4k
    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.
    • A
      Alex Sage
      last edited by scottalanmiller

      What's the best way to move OwnCloud to a sub domain without the folder?

      For example I want to make oc.domain.com/OwnCloud to just oc.domain.com

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        You just change the default directory used by your web server, likely Apache / HTTPD.

        Right now it likely points to /var/www/html as the default and under that there is an owncloud directory, hence why it works like it does. You need to make the owncloud directory the root where it starts rather than one level below where it starts.

        So in /etc/httpd/conf/httpd.conf or equivalent configuration file, look for the directive pointing the web server to server whatever folder owncloud is in, and tack on /owncloud to the end of that line and you will be all set after a web server restart.

        1 Reply Last reply Reply Quote 2
        • A
          Alex Sage
          last edited by Alex Sage

          https://i.imgur.com/L88QzEI.png

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            There might be a setting that has to be changed in ownCloud before you can do that. But I'm not aware of one.

            travisdh1T 1 Reply Last reply Reply Quote 0
            • travisdh1T
              travisdh1 @scottalanmiller
              last edited by

              @scottalanmiller There is the "trusted domains" section of the config.php file. I don't think ownCloud throws that error when the trusted domains isn't set correctly tho.

              1 Reply Last reply Reply Quote 3
              • stacksofplatesS
                stacksofplates
                last edited by

                If you're running CentOS you're most likely going to need to change SELinux contexts to match also.

                1 Reply Last reply Reply Quote 2
                • 1 / 1
                • First post
                  Last post