1
当我这样做:如果没有启用网站,应该显示apache默认页面吗?
sudo a2dissite
我得到
Your choices are:
意味着所有的网站都被禁止。
当我把我的IP本地网络地址放在浏览器中时,我得到了默认的Apache页面。
http://192.168.1.101/ (putting this in the browser address bar gets me the default apache page)
与
sudo service apache2 stop
停止Apache给了我 '该网站无法到达',那么Apache是服务于默认页。
那么,当没有网站启用时,是否显示apache默认页面?
后续工作:我将如何制作一个不同的目录默认?我有一个test.conf设立
<VirtualHost 127.0.0.2:80>
ServerAdmin [email protected]
DocumentRoot /home/myusername/websites/wp-test-site/site
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
我认为这使这将使默认的站点文件夹中的/ home /名为myUsername /网站/ WP-测试网站/网站,但事实并非如此。
是的我重新启动与sudo。