FreeBSD 6.2-BETA2 WebServer架设总结
http://tech.ddvip.com 2008年01月21日 社区交流
内容摘要:如果您要是装FreeBSD 6.2-BETA2 似乎已经很安全稳定的了.就没有必要花二三个小时去重新编译吧.起码安装WEBserver不用.只要您把安全做好.我认为利用系统漏洞入侵您的服务器不太可能..有必要的时候再重新编译..
#cd ../
#mkdir wwwroot
#cd wwwroot
#ee index.php
输入:
<?php
echo "Vhost.stuhack.com";
?>
//wwwroot 为vhost.stuhack.com
#ee /usr/local/etc/apache22/extra/httpd-vhosts.conf
//按照下面的改成自己的
NameVirtualHost 125.208.15.11:80#apachectl restart
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost 125.208.15.11:80>
ServerAdmin stuceo@stuhack.com
DocumentRoot /usr/local/www/apache22/data/htdocs
ServerName unix.stuhack.com
<Directory "/usr/local/www/apache22/data/htdocs">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost 125.208.15.11:80>
ServerAdmin stuceo@stuhack.com
DocumentRoot /usr/local/www/apache22/data/wwwroot
ServerName vhost.stuhack.com
<Directory "/usr/local/www/apache22/data/wwwroot">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
//重起Apache服务器生效
//ok 打开 http://unix.stuhack.com/
//会显示 Unix.stuhack.com
作者:Stuhack 责编:豆豆技术应用