kali下配置apache服务器
默认KALI下APACHE没有配置,浏览器无法打开127.0.0.1,LOCALHOST;
要先在/etc/apache2下建立httpd.conf
sudo echo ServerName localhost >> /etc/apache2/httpd.conf
重启动APACHE服务:apachectl restart
设置文件地址为 :/etc/apache2/sites-available/default
添加:
<VirtualHost *:80>
ServerName www.php.com #定义域名
DocumentRoot /var/www/php #定义主目录
</VirtualHost>
<VirtualHost *:80>
ServerName www.web.com
DocumentRoot /var//www/web
</VirtualHost>