Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

 Apache configuration

In the logs directory add a robots.txt

User-agent: *
Disallow: /

Edit /etc/httpd/conf/httpd.conf

<-- Location may be different depending on OS

Note: Change log location

LogFormat "%h %l %u %t \"%r\" %>s %b \"%

Unknown macro: {User-Agent}

i\" %T" combined
CustomLog /home/sakaiqa/qa/sakai-demo-2.7.0-SNAPSHOT/logs/access_log combined
ErrorLog /home/sakaiqa/qa/sakai-demo-2.7.0-SNAPSHOT/logs/error_log

 Check the sanity of the changes

/etc/init.d/httpd configtest
Syntax OK
/etc/init.d/htppd stop
/etc/init.d/start

Installing a log analyser (http://www.analog.cx/)

sudo apt-get install analog

edit /etc/analog.cfg

APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b \"%

Unknown macro: {User-Agent}

i\" %T)
LOGFILE /home/alan/Desktop/test/access_log
OUTFILE /home/alan/Desktop/test/qa1-nl_2.7.0.m1.html

  • No labels