[mythtv-users] Securing mythweb.

Bill Meek keemllib at gmail.com
Thu Sep 22 22:31:00 UTC 2022


On 9/22/22 16:57, Kevin Johnson wrote:
> 
> 
> On Thu, Sep 22, 2022 at 2:47 PM Gary Raposo <gary at raposo.ca <mailto:gary at raposo.ca>> wrote:
> 
>     Hi Kevin,
> 
>     Basic authentication may look something like this (my reference is
>     Apache httpd running on Fedora):
> 
>     vi /etc/httpd/conf.d/mythweb.conf
>     Add:
>     <Directory "/usr/share/mythweb">
>           AuthType Basic
>           AuthBasicProvider file
>           AuthUserFile /etc/httpd/conf/passwd/passwords
>           Require user mythtv
>     </Directory>
> 
>     htpasswd /etc/httpd/conf/passwd/passwords mythtv
>     systemctl restart httpd
> 
>     Change the paths as needed.
> 
>     Gary
> 
>     On 2022-09-22 1:10 p.m., Kevin Johnson wrote:
>      > Hi all.
>      > I would like to secure MythWeb. But everything I find searching online
>      > seems to be from 10 years ago or more. Can anybody point me in the
>      > right direction to make it so I have to put in a user name and
>      > password to get on to mythweb? Thank you.
>      >
>      > _______________________________________________
>      > mythtv-users mailing list
>      > mythtv-users at mythtv.org <mailto:mythtv-users at mythtv.org>
>      > http://lists.mythtv.org/mailman/listinfo/mythtv-users <http://lists.mythtv.org/mailman/listinfo/mythtv-users>>
>     http://wiki.mythtv.org/Mailing_List_etiquette <http://wiki.mythtv.org/Mailing_List_etiquette>
>      > MythTV Forums: https://forum.mythtv.org <https://forum.mythtv.org>/
> 
> I am using ubuntu 22.04 and have two locations for mythweb.conf
>   /etc/apache2/sites-available
>   /etc/apache2/sites-available # probably sites-enabled
> 
> Which one should I edit?


If you do this: ls -ld /etc/apache2/sites-{available,enabled}/mythweb.conf
you'll see that one file is a symbolic link to the other. Edit the one
in sites-available, but either would do the trick.

I'd make a copy of the one in /etc/apache2/sites-available if you've not done
this before.

-- 
Bill


More information about the mythtv-users mailing list