apache2常用配置

重启:/etc/init.d/apache2 restart   或者 apachectl restart

更改运行apache2运行的用户[文件httpd.conf需要重启]:

<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User myuser
Group mygroup
</IfModule>

本文持续更新

转载请注明: 转载自http://jyd.me/

本文链接地址: apache2常用配置

Tagged on:

发表回复

您的电子邮箱地址不会被公开。

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据