View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jan 23, 2006 1:42 pm 
Offline
Joined: Fri Feb 11, 2005 6:24 pm
Posts: 17
R5A16 (see sig for full system configuration link)

Goal: Allow MythWeb connection from local LAN w/o password. Allow MythWeb access through external internet password protected.

Network topology: voIP linksys external to cable modem, 192.168.1.1
wired to it with static IP of 192.168.1.2 and local IP of 192.168.0.1 is a netgear wireless router. KnoppMyth is connected at 192.168.0.27 to wireless router. My local computer is connected to the voIP linksys at 192.168.1.x
port forwarding is setup for the wireless to the PVR and the linksys voIP to the wireless allowing access to 80 from anywhere internal/external.

Tasks completed:

httpd.conf
Code:
Below 'AllowOverride None' added:
# Force a password
AuthType Basic
AuthName "BasicAuth"
AuthUserFile /etc/apache/basicauth
Require valid-user


htpasswd -c /etc/apache/basicauth USERNAME
Entered password

TEST WORKING All access local and external requires username/pw and it works properly.

PROBLEM TIME
.htaccess
Code:
Order Allow,Deny
Deny from all
Allow from 192.168
AuthType Basic
AuthName "MythTV"
AuthUserFile /var/www/htpasswd
Require valid-user
Satisfy any


The above code doesn't seem to do anything. I've tried combining it with AllowOverride ALL in httpd.conf which gives me the expected MythTV username/password request, but it is not accepted. It also asks for it locally. I've played with the Allow from X.X.X.X info using apache docs with no change. I tried making AuthName in .htaccess the same as the AuthName in httpd.conf with no success. I have to be missing something. I can't get a different local and external behaviour first and foremost, and after that I need to make my created username/password work like it does with only the httpd.conf editing.

Someone more experienced can probably tell me where my syntax is wrong, because I've tried everything I could think of based off of aApache ALLOW/DENY/ORDER documentation.

Thanks in advance!

_________________
- Andy
Tier2: http://mysettopbox.tv/phpBB2/viewtopic.php?t=5826
PHP Book -- PHP Reference: Beginner to Intermediate PHP5


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 12 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