0
Respost

htcaccess not working?

Temple Pate fa 5 anys actualitzat fa 5 anys 9
I finally got owncloud up and going, did exactly the same as last time so not sure what differnece I did this time. Even the ssl went up without a hitch! But theres one thing. htcaccess? Honestly i always turned it off, don't even know what it's used for, and as such I get this error. 

Security WarningYour data directory and files are probably accessible from the internet because the .htaccess file does not work.
For information how to properly configure your server, please see thedocumentation.


That said I'm posting here because this is how I used to install it, I'm planning on doing it this way and the terminal way, but this way makes it easier for other people who don't like the terminal as much. If I could get that error to go away that would be awesome :) 

Answer

Answer
Respost
.htaccess and NGINX are completely unrelated to each other. To forbid access to a directory inside your installation, you could e.g. create a Static Files content entry for the relevant URL with a nonexisting path for it.
GOOD, I'M SATISFIED
Kay I added the configuration into it, sorry I didn't want to try anything without consulting someone else about it :) I thought things in 
the custom config had to have {} around it. Now if I can just fix this redirect problem which I'm guessing has to do with a wrong password..
Satisfaction mark by Temple Pate fa 5 anys
Answer
Respost
.htaccess and NGINX are completely unrelated to each other. To forbid access to a directory inside your installation, you could e.g. create a Static Files content entry for the relevant URL with a nonexisting path for it.
Also, from the docs: you can add this as custom configuration for your website:

location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README){ deny all; }
I add this to the custom configuration in ajenti v. as is?
*Note after doing the initial setup, it now has a redirect loop. I did try on another computer, but it won't take the password, it just keeps poping up the signin page. 
So make a folder only accessible by administrator using permissions on another location should protect the files?

Again, sorry kinda slow. :)
Yes, just paste it into Websites > website > Advanced > Custom configuration
I'm still getting the Redirect loop once I login. That wouldn't by any causes of Ajenti v would it? 

- just checking my bases. 
No, I had people successfully setup OwnCloud w/ajenti-v. You can check the redirects log at /var/log/nginx/....access.log