一些路径:
- 如果采用RPM包安装,安装路径应在 /etc/httpd目录下
- apache配置文件:/etc/httpd/conf/httpd.conf
- Apache模块路径:/usr/sbin/apachectl
- web目录:/var/www/html
- 如果采用源代码安装,一般默认安装在/usr/local/apache2目录下
配置多端口多站点
apache安装目录/conf/httpd.conf
找到
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
去掉#,去掉#是为了加载扩展配置,如下:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
找到apache安装目录/conf/extra/httpd-vhosts.conf并添加修改等
配置后即可添加项目访问 :路径/var/www/项目