Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-02 18:21:09
- NXArmada
- Member
- From: Sevierville, TN
- Registered: 2005-09-13
- Posts: 82
.htaccess password and allow
is it possible with Apache to allow intranet user to view the intranet site and if your outside the network like at home and you try to load the company intranet site it asks you for a password.
I am studying the docs at the apache website to see if i can make it ask a password if ip address is not from within the network. At a loss on there site.
Im also looking into a PHP method. I may go the PHP route.
Last edited by NXArmada (2005-12-02 18:31:17)
Ryan
Offline
Re: .htaccess password and allow
I think this is what you are looking for.
Shoving is the answer – pusher robot
Offline
#3 2005-12-02 20:09:58
- NXArmada
- Member
- From: Sevierville, TN
- Registered: 2005-09-13
- Posts: 82
Re: .htaccess password and allow
yea that is it thanks hak.
Ryan
Offline
#4 2005-12-02 21:07:12
- NXArmada
- Member
- From: Sevierville, TN
- Registered: 2005-09-13
- Posts: 82
Re: .htaccess password and allow
this is what i have put in but nothing.
<code>
AuthType Basic
AuthName intranet
AuthUserFile /home/linux1/www/_txp/.htpasswd
AuthGroupFile /dev/null
Require valid-user
Allow from 192.168.1
Satisfy All
</code>
Last edited by NXArmada (2005-12-02 21:28:34)
Ryan
Offline
Re: .htaccess password and allow
I wonder if the fact that you are pointing to /dev/null for the group file could be an issue. Also the Satisf all to mean would point to you needing to log in and be coming from 192.168.1
You could try
p.<code>AuthType Basic
AuthName intranet
AuthUserFile /home/linux1/www/_txp/.htpasswd
Require valid-user
Order allow, deny
Allow from 192.168.1
Satisfy any</code>
Is this in a httpd.conf or in an .htaccess file? If in .htaccess make sure you have the right Overrides allowed. I’m kind of guessing here, I’ve never actually implemented anything like this myself.
Shoving is the answer – pusher robot
Offline
#6 2005-12-03 01:00:08
- NXArmada
- Member
- From: Sevierville, TN
- Registered: 2005-09-13
- Posts: 82
Re: .htaccess password and allow
Yea it could be the AuthGroupFile being set to /dev/null
I have an Apache 2.05 server set up and i had to config a little diff. from what the one you should me.
Server Details:
Linux (Ubuntu 5.10)
Apache 2
PHP 5
SVN 2
MySQL 4
Its a nice setup and runs TXP very well. its our intranet server and it gets alot of activity over 100 articles were posted in 3 days. All our departments have access to it to post thangs. And our Vice President wants to be able to access this from home, so thats why I am doing this with Apache or PHP wich ever works.
Ryan
Offline
Pages: 1