kali 下 apache 配置文件

默认的可执行文件 /usr/sbin/apache2

root@ty:/etc/init.d# netstat -anp |grep apache
tcp6       0      0 :::80                   :::*                    LISTEN      5770/apache2    
root@ty:/etc/init.d# ps -ef |grep 5770
root      5770     1  0 22:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5772  5770  0 22:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5773  5770  0 22:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5774  5770  0 22:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5775  5770  0 22:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5776  5770  0 22:56 ?        00:00:00 /usr/sbin/apache2 -k start
root      5889  5700  0 23:09 pts/3    00:00:00 grep 5770
root@tytz:/etc/init.d# 

默认的配置文件 /etc/apache2/apache2.conf

默认的虚拟目录  /.var/www

虚拟目录的配置文件在/etc/apache2/sites-available/default 中

原文地址:https://www.cnblogs.com/diylab/p/4009987.html