Editing
NetHere
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Password protection ==== Http (simple) password protection is governed by the Apache configuration for the domain 1) Create userdb, users file in the domain root directory (/www/www.domain.tld): # mkdir userdb # cd userdb # htpasswd -bc users username password 2) Check out Apache config for www.domain.tld in /nethere/conf/apache/conf/<vhosts,nvhosts> # co -l www.domain.tld(.common) 3) Edit Apache configuration, add the following lines within the VirtualHost container --cut-- <Directory "/www/www.domain.tld/dir_to_be_protected"> AuthType Basic AuthName "www.domain.tld/dir_to_be_protected authentication" AuthUserFile /www/www.domain.tld/userdb/users <Limit GET POST> require valid-user </Limit> </Directory> --cut-- 4) Check in Apache config # ci -u www.domain.tld(.common) < /dev/null 5) Restart Apache # apachectl configtest # apachectl restart More on http (simple) password protection can be found here: http://httpd.apache.org/docs/1.3/howto/auth.html#basic
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information