Hello,

I'm new to turnkey and webmin but I'm liking it and getting close to having my server ready to go. I'm migrating websites from a Mac Server so am mostly used to that Server Admin GUI interface.

One thing I had set-up were Realms. I created system users and only allowed those users to access specific directories for managing some of my PHP pages. I did this rather than creating a whole new PHP user interface to access admin pages.

Anyway, I've created the users through webmin and have tried to update the virtual host by using the same code generated on my Mac server. When I add this and restart apache it crashes and will not restart until I revert back. 

Below is the code I've tried adding to the virtual host. Any recommendations on what code is breaking things or another way to set-up these Realms?<!--break-->

<Directory "path of directory to secure">
AuthType Basic
<Limit PUT DELETE PROPPATCH PROPFIND MKCOL COPY MOVE LOCK UNLOCK>
Require no-user
</limit>
<limit GET HEAD OPTIONS CONNECT POST>
Require user username1 username1
</limit>
<limit PROPFIND>
Require no-user
</limit>
AuthName "Name of Realm"
</Directory>

Thanks!

 

Forum: 
Tags: 
Jeremy Davis's picture

Great to hear that you're liking TurnKey and you are almost ready to go into production!

TBH, I have never even heard of Apache realms, but doing a bit of googling, I'm pretty sure what you refer to as "realms", I know as "basic http authentication"?! Are we on the same page? If so, I suggest that you consult the Apache 2.4 docs. My guess is that there is something that you are using, that isn't compatible with the version of Apache in TurnKey. If you're using the latest version of Apache on your Mac, that seems likely.

Just in case you weren't aware; TurnKey is based on Debian. Debian is focused primarily on stability and security. So instead of updating software versions (which may create instability due to compatibility problems between different pieces of software) it backports security patches, to the version that is shipped. This updated security patches are auto installed every night.

Jeremy,

Thanks for pointing me in the right direction. I came along this video it was all I needed to do.  :)

https://www.youtube.com/watch?v=19Y1YqtdqVU

Thanks!!

Jeremy Davis's picture

Great to hear that my pointers headed you in the right direction and that you've worked it out! :)

Add new comment