在apache2.4下配置瞭如下代碼文件
但是apache報錯
(另外網上教程說綁定host文件,我並不知道這是什麼東西。)
設定部分程式碼如下
apache2.conf
Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
NameVirtualHost smilencer.meServerName www.smilencer.me
DocumentRoot "/var/www/wordpress"
<Directory "/var/www/wordpress">
Options FollowSymLinks
AllowOverride All
Require all granted
ServerName www.whatare.me
DocumentRoot "/var/www/What_Are_You_Doing/map"
Options FollowSymLinks
AllowOverride All
Require all granted
mytest.conf
這裡給你一個參考,你可以用你自己的網域替換掉
[YOUR_DOMAIN_NAME]