重启apache2
sudo service apache2 restart;
apache2配置文件
/etc/apache2/sites-enabled
新建项目域名配置
<VirtualHost *:80>
ServerName phpmyadmin.localhost.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/phpmyadmin
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
hosts文件位置
/etc/hosts
网友评论