Gossamer Forum
Home : General : Perl Programming :

can i have if..else in the httpd.conf file

Quote Reply
can i have if..else in the httpd.conf file
Hi,
I am a newbie to apache(on win-nt).Our company have a website which can be viewed both by guests and by our employees.I have used <directory> directive to block access to a particular folder in our company web site.So whenever the guest tries to access some files present in the resricted folder, an authentication screen would pop up asking for username and password and when correct credentials are supplied the user is given access to the
restricted folder.Now the problem is there is a login page which will be used for our employees to login to the site.So when one of our employee has successfully logged in and now tries to view the files in the restricted folder,he is again shown the authentication screen .So is there a mechanism whereby we can prevent a previously authenticated person from getting authenticated again...Can we have a if ..else construct in the httpd file and
set some variable during the first quthentication process and check for the variable during the <directory> directive validation...


Pls help..It is of utmost urgency...


Thanx,
Alfred

Subject Author Views Date
Thread can i have if..else in the httpd.conf file alfredjerald 5078 Jun 6, 2001, 5:33 AM
Thread Re: can i have if..else in the httpd.conf file
Stealth 4903 Jun 6, 2001, 7:37 AM
Thread Re: can i have if..else in the httpd.conf file
Paul 4898 Jun 6, 2001, 8:11 AM
Thread Re: can i have if..else in the httpd.conf file
Jagerman 4866 Jun 6, 2001, 3:07 PM
Post Re: can i have if..else in the httpd.conf file
Paul 4847 Jun 6, 2001, 3:11 PM
Thread Re: can i have if..else in the httpd.conf file
Wil 4831 Jun 7, 2001, 5:19 AM
Thread Re: can i have if..else in the httpd.conf file
Paul 4848 Jun 7, 2001, 5:26 AM
Post Re: can i have if..else in the httpd.conf file
Wil 4843 Jun 8, 2001, 3:43 AM