The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



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

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, Web 2.0 and Mashups 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
login page not available seyiisq UNIX for Dummies Questions & Answers 8 11-22-2008 10:02 PM
APACHE: Tie in Web Page login with server login WhotheWhat Web Programming, Web 2.0 and Mashups 2 11-19-2008 11:17 AM
could not get a login page seyiisq SUN Solaris 3 11-15-2008 12:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-14-2009
ravi18s ravi18s is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 17
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
  #2 (permalink)  
Old 05-19-2009
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 553
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.
Closed Thread

Bookmarks

Tags
apache2, login page, unix, web page

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0