RE: [users@httpd] How to set a custom DNS to Apache?

2014-07-20 Thread Mark jensen
sorry, I don't understand all of your answer, especially about the 2nd question, In Squid to set a custom DNS they add one line to the squid.conf file: dns-server IP_Address for example: dns_server 192.168.1.2 and all DNS queries will go to this server(192.168.1.2). Is there any thing s

[users@httpd] How to set a custom DNS to Apache?

2014-07-20 Thread Mark jensen
I have read about Authoriztion in Apache: Require host example.org Require host .net example.edu This configuration will cause Apache to perform a double reverse DNS lookup on the client IP address, regardless of the setting of the HostnameLookups directive. 1- What is the DNS that

Re: [users@httpd] can Apache do a sql query and Authenticate only some users?

2014-07-20 Thread D'Arcy J.M. Cain
On Sun, 20 Jul 2014 13:49:40 + Mark jensen wrote: > How can I do this, Do I have to write a shell script or something > like that, is there any helpful tutorial? Something like that. At this point you are looking at a major programming project. I don't think you will find a canned solution

Re: [users@httpd] can Apache do a sql query and Authenticate only some users?

2014-07-20 Thread Edgar Pettijohn
http://php.net/manual/en/book.session.php http://php.net/manual/en/features.cookies.php On 07/20/2014 08:49 AM, Mark jensen wrote: > about the session/cookies solution you have said: > >> You >> can base your logic on the IP address of the sender and either send >> them to a login screen or direc

RE: [users@httpd] can Apache do a sql query and Authenticate only some users?

2014-07-20 Thread Mark jensen
about the session/cookies solution you have said: > You > can base your logic on the IP address of the sender and either send > them to a login screen or directly to the application. How can I do this, Do I have to write a shell script or something like that, is there any helpful tutorial?

Re: [users@httpd] can Apache do a sql query and Authenticate only some users?

2014-07-20 Thread D'Arcy J.M. Cain
On Sun, 20 Jul 2014 10:24:21 + Mark jensen wrote: > - so can apache do a sql query to this DB and if the IP of the user > is found in this DB, don't ask him for the authentication? > - Or can apache authenticate the user by it self if it finds the IP > of the user in the DB? No. You can writ

Re: [users@httpd] can Apache do a sql query and Authenticate only some users?

2014-07-20 Thread Eric Covener
On Sun, Jul 20, 2014 at 6:24 AM, Mark jensen wrote: > > - so can apache do a sql query to this DB and if the IP of the user is found > in this DB, don't ask him for the authentication? > - Or can apache authenticate the user by it self if it finds the IP of the > user in the DB? No, because an

RE: [users@httpd] can Apache do a sql query and Authenticate only some users?

2014-07-20 Thread Mark jensen
Thanks for your reply I have done some programming and my DB I have mention is like this: User    IP   Mark    10.10.10.1 Mike    10.10.10.2 Karl    10.10.10.3 - so can apache do a sql query to this DB and if the IP of the user is found in this DB, don't ask him for the auth