View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Dec 01, 2003 10:15 am 
Offline
Joined: Mon Nov 24, 2003 4:23 pm
Posts: 38
If anyone out there has their myth box directly connected to their net connection, you may want to put a Basic Auth password over the mythweb root.

1) Add the BasicAuth settings to httpd.conf
# vi /etc/apache/httpd.conf

Search for the root directory settings:
/<Directory \/var\/www\/>

Below 'AllowOverride None' add:

# Force a password
AuthType Basic
AuthName "BasicAuth"
AuthUserFile /etc/apache/basicauth
Require valid-user

Save
:wq

2) Create your user(s)
# htpasswd -c /etc/apache/basicauth USERNAME
Then type in the password
Note: For any future additions, drop the '-c' parameter. It is for 'create'.
# htpasswd /etc/apache/basicauth USERNAME2

3) Restart apache
/etc/init.d/apache restart

4) Test
Open whatever browser to your page and verify it asks and accepts your password.


There may be a way to do the same thing with a .htaccess file, but this is how I do it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 2:34 pm 
Offline
Joined: Fri Dec 26, 2003 2:25 pm
Posts: 244
Awesome. Thanks for the post


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2004 10:23 am 
Offline
Joined: Thu Feb 12, 2004 12:28 pm
Posts: 6
Location: Virginia
Nice Doc if you want to do even more
http://httpd.apache.org/docs-2.0/howto/auth.html


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 2:18 am 
Offline
Joined: Sat Feb 28, 2004 2:06 am
Posts: 1
I have my mythweb on the net and want the security of a password to avoid unwanted recordings/deletions. But sometimes this can be iritating when you access mythweb from a home PC and you need to enter a password. Below is a .htaccess file that will only require a password if you are not on your local private network.

Code:
Deny from all
Allow from 192.168.0.
AuthType Basic
AuthName "MythTV"
AuthUserFile /var/www/htpasswd
Require valid-user
Satisfy any


Enjoy ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 01, 2004 3:44 pm 
Offline
Joined: Wed Sep 08, 2004 10:15 pm
Posts: 82
how exactly is this put into effect (last post with home network privlidges) I looked around but don't quite get how to get it working..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 01, 2004 4:49 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
have you looked at the instructions on the wiki they should be specefic enough to get you through it.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu