[英]OctoberCms Backend not working in subfolder Apache
I am install a new project of the OctoberCMS in my VPS in a subfolder, example, /var/www/myCMS/ (here this my installation of the OctoberCMS). 我在VPS的子文件夹(例如/ var / www / myCMS /)中安装了OctoberCMS的新项目(这里是OctoberCMS的安装)。
When I access my site by domain example: www.mydomain.com/myCMS/ I having a image of the welcome demo, picture bottom: 当我通过域示例访问我的网站时:www.mydomain.com/myCMS/我有一个欢迎演示的图像,下面是图片:
But which accessing the Backend (www.mydomain.com/myCMS/backend I have this error: 但是访问后端(www.mydomain.com/myCMS/backend的我有此错误:
Any solution? 有什么办法吗?
My system is: - Apache2 - Ubuntu 16.04 我的系统是:-Apache2-Ubuntu 16.04
sometime default apache
installation is not come with mode rewrite enabled( as you described its your vpn) 有时默认的apache
安装未启用模式重写功能(如您所描述的那样,您的VPN)
so you need to enabled rewrite module manually use this 2 commands to enable
rewrite module
and restart apache
因此您需要手动启用重写模块,请使用这2个命令来enable
rewrite module
并restart apache
a2enmod rewrite
service apache2 restart
then just check that your directory have .htaccess
in order to redirect all request to the index.php
然后只需检查您的目录是否具有.htaccess
即可将所有请求重定向到index.php
in your apache server
you need this things 在您的apache server
您需要这些东西
<Directory /var/www/html/example.com/public_html>
Options Indexes FollowSymLinks
# this is needed to work .htaccess
AllowOverride All
Require all granted
</Directory>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.