Home Man
Search
Today's Posts
Register

Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Login Page

Tags
apache2, login page, unix, web, web page

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 05-13-2009
Login Page

I had a login page and want to authenticate through a Unix file (.txt file).
-----abc.txt------
absvd|sfjlfnfkf
anldnv|asklffdko
------------------
So I want to read the file and check if corresponding username and password matches or not using javascript or JSP. Also tell me in which directory of apache we should put this abc.txt file in which login details are stored.

Last edited by ravi18s; 05-14-2009 at 06:33 AM.. Reason: now asking More specifically with example
# 2  
Old 05-19-2009
you want your DocumentRoot directory. look in httpd.conf for this path. after that, you can place it anywhere you want.
example
Code:
# view /etc/apache/httpd.conf
...

DocumentRoot "/var/apache2/htdocs"
...

now you can put it in any directory after that path in /var/apache2/htdocs
you could make a directory called test and put it in there. set your permissions and owner.
next, make sure apache is up and then put in your usually address in a browser like 'http://localhost/test/test.html'
you should see your page.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Curl login to web page Vit0_Corleone Linux 0 01-06-2017 08:36 PM
Httpd proxy with mod_jk,ssl only on login page using .htacess new2ss Web Programming 0 01-21-2014 02:16 AM
Simple Login page gameboy87 Web Programming 2 08-28-2011 01:02 PM
htmldoc with login on page Demerzel Shell Programming and Scripting 4 03-17-2010 10:37 AM
How to redirect to squid login web page when internet access sandeepvson UNIX and Linux Applications 1 02-11-2010 12:23 AM
Login page in html on unix ravi18s Web Programming 13 07-21-2009 10:52 AM
APACHE: Tie in Web Page login with server login WhotheWhat Security 1 11-26-2008 01:58 AM
APACHE: Tie in Web Page login with server login WhotheWhat Web Programming 2 11-19-2008 10:17 AM
could not get a login page seyiisq Solaris 3 11-15-2008 11:21 AM
How can i use system users in perl for login page tahsinaltay Shell Programming and Scripting 2 09-23-2008 08:51 PM


All times are GMT -4. The time now is 03:17 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password