Apache Server how to set password for all access?


 
Thread Tools Search this Thread
Operating Systems Linux Apache Server how to set password for all access?
# 1  
Old 11-10-2008
Apache Server how to set password for all access?

Hello all,

I am new to Linux and am trying to set a password for access to Apache server access. I have both Apache and Tomcat installed in my server, Apache forwards the requests to our Tomcat server which servers the java application we have.

The Java application is not configured to ask for a password, I want to know if I can specify a Username and password to "ALL ACCESS TO APACHE SERVER". I mean if anybody accesses the system they should be asked for a password, before the request is sent to tomcat.

Instead of a ".htaccess" file put in the directory to ask for a password. Can I just use something which asks password for "all access".

Like maybe changing something in the AuthType or something??

AuthType Basic
AuthName "Restricted Files"
# 2  
Old 11-13-2008
I didn't get the "all access" part, what do you mean ? Else, passwords are achieved via "htpasswd" utility, read its man pages.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Proxy Server

How to use Squid on Linux to control certain IP to access Web Server and certain IP cannot access?

Dear all experts here, :) I would like to install a proxy server on Linux server to perform solely to control the access of Web server. In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server. I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies

2. Linux

Restricting directory access in Apache server

Hi all, I have a web site that I'm serving on an Apache server, and it has a number of different folders, but I only want the user to be able to access certain ones -- the majority of them I don't want the user to access. I tried modifying my /etc/apache2/conf.d/security file to do this, but I... (1 Reply)
Discussion started by: Zel2008
1 Replies

3. Shell Programming and Scripting

Auto Script to Access external Server via SFTP using Password and Key

Hello All, I am stuck! I have access to an external server via SFTP. In order to access the external server I was given a specific port, password, and a ppk. I would to create a script on my server end that can I can setup as a corn job, that will connect to the external server and... (1 Reply)
Discussion started by: kingr008
1 Replies

4. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

5. Web Development

Cannot access Apache web server from Wan side, only Lan side.

I have installed WAMPSERVER 2.0 on my windows vista x64 system but still am having issues with getting the webserver to be seen outside my local network. It is working fine within my local network. Been through several setup tutorials so far, no dice still. For testing purposes I have... (1 Reply)
Discussion started by: davidmanvell
1 Replies

6. UNIX for Advanced & Expert Users

remote web server access (apache)

Hi, I have web server (apache) installed in server-1 and i want to view the web pages from diferent servers also while the web server is running only in one server ....(all the servers are connected to office LAN) right now all the servers have apache running......and CPU utilzation is at its... (2 Replies)
Discussion started by: aditya.ece1985
2 Replies

7. UNIX for Dummies Questions & Answers

cannot access files in apache

i've never had this happen before, but i cannot access files from the shell in my apache server but i can see them on my localhost and by typing in my ip address in the url i can access and view files. not through the shell tho.... kumi@throne:/var/www % ls -l templates/decorative total 0... (3 Replies)
Discussion started by: visitorQ
3 Replies

8. Solaris

network config problem - how to set the server for others to ssh without password

Hi, I want to ssh the linux server without inputting the password, how can I config this server? Thanks in advance! (1 Reply)
Discussion started by: GCTEII
1 Replies

9. UNIX for Dummies Questions & Answers

Can't access apache

I have installed RedHat 9.0 and Apache. Everything works fine... I type http://localhost and the default webpage comes up... But when I go to another computer that is on the network and type http://10.10.1.38 (the computer) it comes up "The Page Cannot Be Displayed" I am logged in as the Root... ... (0 Replies)
Discussion started by: pokermagic
0 Replies
Login or Register to Ask a Question