Help installing on Debian [SOLVED]

So I’m rather confused I can’t get this to work as I’ve done this a handful of times before, but this time I’m running into a roadblock. Here’s what I’ve done:
Put all my nextcloud contents in /var/www/html/nextcloud
Tried having my webroot be /var/www/html and /var/www/html/nextcloud

my www-data user has ownership over everything except I gave user ownership to root for the .htaccess files.

And here are the lines I have added to my default apache nextcloud.conf file at the very end:

Alias /nextcloud “/var/www/html/nextcloud/”

<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All

Dav off

SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud

I also have my mysql database created, but that doesn’t really matter because I can’t even get to the spot where I can even hook it up. When I try to visit the website for the first time I get this error:

“You don’t ahve permission to access / on this server.
Server unabled to read htaccess file, denying access to be safe”

What’s odd is the nextcloud directory won’t even show up in the webroot. Quick FYI: This is running in a FreeBSD jail inside VirtualBox

Well after fudging around with it for too long I moved the contents of nextcloud/ to my webroot (/var/www/html) and it works. Is this an orthodox thing to do?

You can run nextcloud directly in your webroot, there is no problem about that. If you use this domain or subdomain for nextcloud only, it makes the URLs shorter.

Gotcha! I am running Nextcloud in a container that’s separate from my website. So is there a way to do something like “”? My internal website would be something like and Nextcloud would be or something like that

Yes, you can use VirtualHosts with different IPs. There are a number of examples in the apache-doc:

1 Like