ee /etc/rc.conf
apache22_enable="YES"
重新啟動FreeBSD
##Apache根目錄
/usr/local/www
##設定Config檔
/usr/local/etc/apache22/httpd.conf
ee /usr/local/etc/apache22/httpd.conf/
ServerRoot "/usr/local"
Listen 80
User www
Group www
ServerAdmin 0455@twse.com.tw
ServerName www.trt.com.tw:80
DocumentRoot "/usr/local/www"
ErrorLog "/var/log/httpd-error.log"
LogLevel warn
CustomLog "/var/log/httpd-access.log"
ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin"
DefaultType text/plain
Include etc/apache22/Includes/*.conf
##重新啟動Apache
/usr/local/sbin/apachectl restart
##不中斷連線重新啟動Apache
/usr/local/sbin/apachectl graceful
##參考
http://ftp.ncnu.edu.tw/Documentation/FreeBSD/FreeBSD_eBook/ch26-1.pdf
## FreeBSD筆記 http://www.weithenn.org/cgi-bin/wiki.pl?FreeBSD_%E7%AD%86%E8%A8%98
沒有留言:
張貼留言