Professional Documents
Culture Documents
on CentOS 5.8
Step 1
Step 2
Step 3
Step 4
Part 2
Part 4
2. Making directory
/home/linux/www
$ chmod 755 www
$ cat > www/index.html
# service httpd restart
4. Testing
http://www.chul.com/~linux
4. Directory making
</Directory>
3. Testing
Step 6 CGI
1.CGI (Common Gateway Interface)
Support dynamic contents for web server
/etc/httpd/conf/httpd.conf
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
2. Apache Modules for CGI
2. Configuration
/etc/webalizer.conf
# webalizer c /etc/webalizer.conf
3. Access control
/etc/httpd/conf.d/webalizer.conf
4. Testing
http://localhost/usage or www.chul.com/usage
awstats-7.0-2.el5.rf
perl-Geo-IP
GeoIP-data
2 Configuration in /etc/awstats/
# mv awstats.localhost.localdomain.conf awstats.www.chul.com.conf
# vi awstats.www.chul.com.conf
LogFile=/var/log/httpd/access_log
SiteDomain= chul.com
HostAliases= www.chul.com
DirData=/var/www/html/awstats
LoadPlugin=geoip GEOIP_STANDARD /var/lib/GeoIP/GeoIP.dat
3. Testing on Firefox
http://www.chul.com/awstats/awstats.pl
2. Configuration (/etc/squid/squid.conf)
http_port 3128
cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl example src 192.168.80.0/255.255.255.0
http_access allow localhost
http_access allow example
http_access deny all
3. Service startup
5. Testing