First, select the web server when the most basic configuration installed under Linux is selected, and the HTTPD service is installed, which means that the apache service has been installed, but not started, open this service process as follows: 1, edit / etc The httpd.conf file under the / httpd / conf / directory, find the option (second part), remove the front ##, change the server name to the host name (I am Banaba1), in the back DocumentRoot parameter can be modified The location of our own website. (Later, it was not enough, but also in in the next N row, changed to
Then you install the Apache2.0.53 version, down is the .tar.gz package, first solve the / etc / httpd folder with the TAR XZVF file name, then run ./configure --prefix / etc / httpd / command, specify Install under / etc / httpd. Run Make, generate a compilation file, run Make Install, and perform a long installation process. After the installation is over, use the make Clean command to clear the file generated during the installation process and the files generated during the configuration process. Then in the modification of the configuration file, the client is http://192.168.10.43/, and the Apache success prompt appears. Then start configuring my web ACL list. Built a folder first, MKDIR / ACLTEST. The User Apache Group Apache Permissions #Chown Apache AclTest / # chGRP Apache AclTest / # chmod 500 ACLTEST / Using a INDEX.HTML file in ACLTEST, Touch Index.html uses the VI editor.
CREANG AN ACL Title> head> this is a second page body> html> After completing ESC, press ZZ (uppercase) to save and drop out. Then in the httpd.conf file, configure the alias to connect. VI httpd.conf finds this of Alias to modify alias / acltest "/ acltest" ALOWOVERRIDE ALLALLLOW FROM All Directory> The first item is the file that is a specific pointing file. The clip is permissions. Use /etc/rc.d/init.d/httpd restart to restart the HTTPD service. In the client IE, type http://192.168.10.43/acltest to set the page after setting the access control list. The general process is to build an access control file, with the user and password above, with / etc / passwd, which is specifically used for web access. Command is as follows: cd / acltesttouch .htaccess vi .htaccess typing the following code (and no less, less is not hidden files.): AuthUserFile /apachepasswd/.htpasswdAuthGroupFile / dev / null / AuthName "My secret directory" AuthType Basicrequire valid -user quit saving mkdir / apachepasswd # chown apache apachepasswd / # chgrp apache apachepasswd / # chmod 500 apachepasswd with ZZ / build user htpasswd -c /apachepasswd/.htpasswd webuser1New password: webuser1Re-type new password: webuser1 to build several other users, This is not "-c" this time. HTPASSWD /APACHEPASSWD/.htpasswd WebUser2new password: WebUser2re-Type New Password: WebUser2 restarts the HTTPD service. Look at http://192.168.10.43/acltest on the client, request the username and password.