the dependency before configure vhost
installing cronolog
#wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
#tar -zxvf cronolog-1.6.2.tar.gz
#cd cronolog-1.6.2
#./configure
#make && make install
preparing for configuration vhost
#cd /home/prayoga
#mkdir -p apache/suseq.org/htdocs apache/suseq.org/cgi-bin
#ln -s apache/suseq.org suseq.org
konfiguration vhost (apache)
#vi /usr/local/apache2/conf/httpd.conf...[ add this line ]...
# VirtualHost
NameVirtualHost 10.100.100.86:80
<VirtualHost 10.100.100.86:80>
ServerName suseq.org
ServerAlias www.suseq.org
DocumentRoot "/home/prayoga/apache/suseq.org/htdocs"
CustomLog "|/usr/local/sbin/cronolog /var/log/apache2/prayoga/%Y/%m/%d/suseq.org.access_log" combined
ErrorLog "|/usr/local/sbin/cronolog /var/log/apache2/prayoga/%Y/%m/%d/suseq.org.error_log"
ScriptAlias /cgi-bin "/home/prayoga/apache/suseq.org/cgi-bin/"
<Directory "/home/prayoga/apache/suseq.org/htdocs">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Restart Apache
source:http://www.blackonsole.org/2009/05/configure-vhost-apache-on-opensuse-110.htmlwget http://cronolog.org/download/cronolog-1.6.2.tar.gz
0 comments:
Post a Comment