标签:color nbsp dir option access com cal var sudo
/etc/hosts
配置:
127.0.0.1 localhost www.ismei.com
其他:
打开配置文件:
/etc/apache2/sites-available$ ls -al
/etc/apache2/sites-available$ sudo gedit 000-default.conf
配置域名:
<VirtualHost *:80>
ServerName www.ismei.com //自定义
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/ismei //目录地址
<Directory "/var/www/html/ismei"> //目录地址
Options all
AllowOverride None
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
标签:color nbsp dir option access com cal var sudo
原文地址:https://www.cnblogs.com/ksy-c/p/9001341.html