OwnCloud Sub Domain
-
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
-
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.
-
-
There might be a setting that has to be changed in ownCloud before you can do that. But I'm not aware of one.
-
@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.
-
If you're running CentOS you're most likely going to need to change SELinux contexts to match also.