linux apache服务器配置虚拟主机
程序员文章站
2022-05-31 14:10:50
...
楼主用的是阿里云
配置虚拟主机需要在 /alidata/vhosts/default.conf文件中加以下内容
<VirtualHost *:80>
DocumentRoot /alidata/www/default/baby
ServerName www.nixiaofeng.xyz
ServerAlias www.nixiaofeng.xyz
<Directory "/alidata/www/default/baby">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ErrorLog "/alidata/log/httpd/phpwind-error.log"
CustomLog "/alidata/log/httpd/phpwind.log" common
</VirtualHost>
转载于:https://blog.51cto.com/chenxiaolong/1710419
下一篇: Nginx 用虚拟主机做下载服务器