Redhat 7 Web服務器配置

虛擬主機配置

mkdir –p /var/www/virtual

cd /var/www/ virtual

wget –O index.html vim /etc/httpd/conf/httpd.conf

<virtualhost *:80>

documentroot /var/www/virtual

servername www5.example.com

</virtualhost>

useradd andy 

setfacl -m u:andy:rwx /var/www/virtual

su andy

touch /var/www/virtual/11.html

systemctl restart httpd && systemctl enable httpd 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章