Implementing a web server, Maintaining a web server, Implementing a proxy server, Be able to install and configure an Apache web server: Monitoring Apache load and performance, restricting client user access,... As the main contents of the Lesson LPI 202 Chapter 4 - Advancer Linux Netword Administration Web Services. Invite you to consult.
Trang 1Web Services
Chapter 05 Advanced Linux Network
Trang 44 LPI Linux
Structure
MUX
ChildChild
Trang 9Date: Mon, 01 Nov 2004 15:06:44 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Fri, 29 Oct 2004 14:47:22 GMT
Trang 14Retype New Password: *******
Adding password for user andrew.
• -c is only the first time running the command, as this creates
the file too. Miss out –c after the first run
Trang 25Webaliser Summary
Trang 2626 LPI Linux
Per day activity – October 2004
Trang 27Hour analysis – October 2004
Trang 29Where from?
Trang 30•Create the initial caching directories:
–The script /etc/init.d/squid
–If install from source, create cache directories with the -z switch.
squid -z
•The configuration file is /etc/squid/squid.conf
•The syntax of this file can be checked using the -k switch:
squid -k check
•The /etc/init.d/squid rc-script is used to start the service
Trang 31Access Lists and Access Control
• Access lists are created as follows:
– Example:
acl localnet src 192.168.2.0/255.255.255.0
• Access control lists (http_access)
– With http_access a particular access list is either allowed or
denied access via the proxy
Trang 3232 LPI Linux
Reporting Tools
• Most log analysis tools available for squid are listed on
the following site: