Home > Archive > PERL Miscellaneous > March 2008 > Redirecting to my own login page instead of Apache Login
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Redirecting to my own login page instead of Apache Login
|
|
| nahanfee@gmail.com 2008-03-24, 4:20 am |
| Hello,
I made one login page (in cgi perl) which authenticates the user using
Ldap data. It is working fine.
Now I want to prevent the apache web server User authentication page
to display and use my login page instead.
The idea is I am redirecting to the restricted folder (directory) only
if the authentication made.
But if user itself type the URL of that directory it is showing Apache
login page.
I am new in CGI and apache web configuration things.
any help will be appreciable
Thanks in advance
| |
| Tad J McClellan 2008-03-24, 8:08 am |
| nahanfee@gmail.com <nahanfee@gmail.com> wrote:
> I am new in CGI and apache web configuration things.
> any help will be appreciable
Here is some help:
Ask Perl questions in a Perl newsgroup.
Ask web server configureation questions in a newsgroup about
web servers.
Your question is not related to Perl in any way.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
| |
| ccc31807 2008-03-24, 7:18 pm |
| On Mar 24, 12:22 am, nahan...@gmail.com wrote:
> Now I want to prevent the apache web server User authentication page
> to display and use my login page instead.
Replace the standard apache index.html file in the document root with
your own index.html. In RedHat Linux you will find this in /var/www/
html/. I would tell you where it is in Windows but unfortunately I do
not currently have access to a Windows machine.
If you are using virtual hosts, create a symbolic link to your
homepage. For example, create your web directory like this:
/home/myhomedir/www/index.html
and create a symlink like this in the http document root (again, this
is Unix/Linx):
ln -s /home/myhomedir/www myhomedir
Alternatively, edit your httpd.conf file. See the documentation.
CC
|
|
|
|
|