我刚刚迁移到Ubuntu 14.04
,我在this教程之后安装了LAMP Stack
。
现在我通过
sudo gedit /etc/apache2/sites-enabled/000-default.conf
并在文件中添加以下内容
<VirtualHost *:80>
ServerAdmin webmaster@dev.bridgessuservices
DocumentRoot /var/www/html/bridgessuservices
ServerName dev.bridgessuservices
ServerAlias dev.bridgessuservices
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
然后在/etc/hosts
127.0.0.1 dev.bridgessuservices
现在当我去dev.bridgessuservices时它很好,但内部URL显示404就像我去dev.bridgessuservices / login,它会告诉我404
答案 0 :(得分:0)
看起来Apache mod-rewrite 模块未启用。所以请启用它并重新检查。
sudo a2enmod rewrite
sudo service apache2 restart
有关启用的详细信息,请参阅https://askubuntu.com/questions/48362/how-to-enable-mod-rewrite-in-apache