Linux Ubuntu 下 apache 配置


安装:sudo apt-get install apache2
再启动:sudo service apache2 restart
查看版本号:apache2 -v
测试http/ftp: wget ip:port
探测端口是否开放: telnet ip port
修改监听端口:
a)/etc/apache2/ports.conf 

Listen port 

b) /etc/apache2/apache2.conf 

<Directory /var/www/> 
   Options Indexes FollowSymLinks MultiViews 
   AllowOverride All 
   Order allow,deny 
  allow from all 
</Directory>
原文地址:https://www.cnblogs.com/sunhaoli/p/6764937.html