Unix/Linux Go Back    


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

Login Page

Web Programming


Tags
apache2, login page, unix, web page

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-14-2009   -   Original Discussion by ravi18s
ravi18s's Unix or Linux Image
ravi18s ravi18s is offline
Registered User
 
Join Date: Mar 2009
Last Activity: 26 May 2009, 8:56 AM EDT
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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 07:33 AM.. Reason: now asking More specifically with example
Sponsored Links
    #2  
Old Unix and Linux 05-19-2009   -   Original Discussion by ravi18s
pupp's Unix or Linux Image
pupp pupp is offline Forum Advisor  
cap_10hdx 1
 
Join Date: Feb 2008
Last Activity: 22 September 2010, 2:56 PM EDT
Location: Jersey Shore
Posts: 647
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Login page in html on unix ravi18s Web Programming 13 07-21-2009 11:52 AM
APACHE: Tie in Web Page login with server login WhotheWhat Security 1 11-26-2008 02:58 AM
APACHE: Tie in Web Page login with server login WhotheWhat Web Programming 2 11-19-2008 11:17 AM
could not get a login page seyiisq Solaris 3 11-15-2008 12:21 PM



All times are GMT -4. The time now is 10:23 PM.