logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Config apache to setup password for website
Author
leonlihkust



Joined: 13 Jun 2013
Posts: 3

PostPosted: Mon 08 Jul '13 15:23    Post subject: Config apache to setup password for website Reply with quote

I want to setup a password for a website running on Ubuntu server, and find Apache can be used. It is implemented by config httpd.conf file and .htaccess file.

So I want to ask:
1. In this case, the password is setup for a path on the server configured in httpd.conf file. Like in the following example:
Code:
 <Directory "/var/www/html/MySite">

The password is setup for the path to Mysite,right?

2. If my content of website is not stored under /var/www folder, I cannot use this way to setup a password for website, right? May use PHP instead?

Thanks a lot.
Leon
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 08 Jul '13 23:08    Post subject: Reply with quote

I know it is lazy to push you to read the manual... but here is the link http://httpd.apache.org/docs/2.2/howto/auth.html

However: if you still have a question please ask again Wink
Back to top


Reply to topic   Topic: Config apache to setup password for website View previous topic :: View next topic
Post new topic   Forum Index -> Apache