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 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!
Sandshark
Jan 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.
- SandsharkJan 16, 2017Sensei - Experienced User
Well, I tried it and it doesn't do a thing, at least not as a separate file in etc/frontview/apache. There must be something in the standard configuration that prevents it. I tried deleting http-share-redirect.conf, figuring the RewriteRule there might be taking precedence but the system re-generated it on boot. I tried using that name for my .conf with the virtualhost commands and got errors.
- osilvabJan 16, 2017Aspirantdo you refer to the cerbot? It didnt modify anything in my fv/apache either. it actually just created the certificate file. but the Apache configuration i guess has to be done manually. I can not say with certainty what is needed. As i did several trials an error until something work. if you need me to check any specific file of my setup i can do it and tell you what is there.
Related Content
NETGEAR Academy

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