我们正在Ubuntu服务器上托管Magento网站。
Magento应用程序在/var/www/html/magento
中,并且我在magento.conf
中创建了/etc/apache2/sites-available/magento.conf
。
magento.conf
<VirtualHost *:80>
ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /var/www/html/magento
<Directory /var/www/html/magento>
Allowoverride All
</Directory>
</VirtualHost>
[当我尝试通过使用浏览器中的mysite.com
打开应用程序时,它正在显示apap网页。
但是当我尝试mysite.com/magento
时,它仅显示没有CSS的主页,而其他所有页面均未找到404错误。
在apache.conf
中,包含magento.conf文件。
Did a2enmod headers
并重新启动了Apache。