NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
osilvab
Jan 09, 2017Aspirant
Owncloud Appache Configuration
My apache configuration is a bit broken now. fortunately the admin page works well. I installed the owncloud add-on and it was working perfectly on the local host. Then I wanted to have access...
osilvab
Jan 11, 2017Aspirant
I gave it anothe try following the thread of chrhei and I succeeded!
I was'nt exactly the same as he had, instead of:
# ./certbot-auto certonly --standalone-supported-challenges tls-sni-01 -d fqdn.yourdomain.com
I just ran
/opt/letsencrypt/certbot-auto
it first asked me the domain and later said me that there wasnt any virtualhost configured for the domain and gave me to choose a configfile i guess from the /etc/apache2/sites-available I chose the default file.
then, it gave again the same warning and asked again for the file, I chose the same. An error appear but it also prompted that the certificate was created and it was located in /etc/letsencrypt/live/domain.com
I checked andit was there, i continue followig the instructions of the thread, edited the ssl.conf, copied the files and restarted apache.
for the apache configuration I followed this guide using the ports 80 and 443 and the root directory for owncloud in the /apps/owncloud/https.conf file , restarted apache and it worked. I added a redirect from http to https that seems to work
Redirect permanent / https://www.yourdomain.com
for the renewal I tested both ways in the sources I refered here, and both worked well. I created a cron as suggested in the latest refered guide. So this part worked, im not so sure if this will work for someone else as I have messed up a bit before, maybe I did some unnecessary things and it can be done in a better way.
I managed to setup the domain at godaddy in the following way:
-A Register from @ to https://www.yourdomain.com
-CNAME from www to noip.domain.com
I tried to setup an additional subdomain cloud.yourdomain.com forwarded to noip.domain.com/owncloud but it didnt work. any idea how to to this? should it be done in godaddy or in noip?
I still have the problem of the local.ip:
https://local.ip/owncloud shows text that starts with "* @author Lukas Reschke <lukas@statuscode.ch> * @author Morris..... " certificate not working
any suggestion?
- osilvabJan 11, 2017Aspirant
I solved the problem with the locahost:
I had file owncloud.conf in /etc/apache2/sites-available and a symbolic link pointing to this in /etc/apache2/sites-enabled with this:
Alias /owncloud /apps/owncloud/web <Directory /apps/owncloud/web> Options -MultiViews +FollowSymLinks -Indexes AllowOverride all Order allow,deny Allow from all </Directory>
I replaced with this
Alias /owncloud /apps/owncloud/web <Directory /apps/owncloud/web> Options -MultiViews +FollowSymLinks -Indexes AllowOverride all Order allow,deny Allow from all php_admin_value upload_tmp_dir "/apps/owncloud/web/data/data/tmp" </Directory> Header always add Strict-Transport-Security "max-age=15768000"
and now it is working.
So right now everything works stable. I just would like to have a subdomain cloud.yourdomain.com pointin directly to the owncloud instance.
when i go to yourdomain.com it goes to the readyCloud enviroment. I guess i can not do anything about this. but would be better if this could be in subdomain also like ready.yourdomain.com
please some help on this would be very useful!
- SandsharkJan 11, 2017Sensei - Experienced User
You can do that with virtual hosts:
<VirtualHost *:80>
DocumentRoot "/apps/owncloud/web"
ServerName owncloud.mydomain.com
</VirtualHost>
Listen 80
<VirtualHost *:80>
DocumentRoot "/data/mydomain"
ServerName www.mydomain.com
</VirtualHost>
Of course, keep any other directives that are already there. And I think you can use the * wildcard in the second one, and it will redirect everything that matches except what is specified above it. I did all this a few years back, but it's hazy now. Had you done this first, it probably would have stopped the error messages you got, too.
Try to do everything in a separate file, not modify an existing file. That way, it will survive an OS or OwnCloud update. In OS4.x, there was a directory that was "included" in the standard .conf file and any .conf you put there got executed. I'm sure there is something similar on OS6.x, but I'm away from home right now and can't check.
I was working on getting the getssl script to work as an alternate to Cerbot, but ran into problems the way the built-in default web page redirection works. It does make the share the primary site, probably with an alias (I got called away in mid debugging), but it shows it in the address bar. That is, it shows as www.mydomain.con/mysite not just www.mydomain. So when the script executes and tries to confirm access to www/mydomain.com/.well-known/acme-challenge it doesn't exist. (I'm setting up both OwnCloud and another site, though the other is just a filler right now.) It needs to go to www/mydomain.com/mysite/.well-known/acme-challenge. I think if it got past that one, it would likely have a similar problem with the owncloud directory. I think this kind of virtual host will solve that problem, too. But since you've finally had success with Cerbot, I may just follow in your footsteps. There is no telling if I'll run into another reeor once I get past this one.
- osilvabJan 12, 2017AspirantThanks, I will try that, Actually there is a OS update available now and im afraid something will get broken. i will back up those folders before running it and hopefully it will survive.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!