2015-10-16 85 views
0

我希望通过斜杠访问我的站点的两个不同版本(基于yii2框架):http://url.comhttp://url.com/something会带我到另一个版本。Apache apache2.conf问题

为了实现这个目标,我把“something”目录放到“url”目录中。

这很好,但不完全是我想要的,因为它看起来像“某些东西”部分没有加载它的.css和脚本。

我去apache2.conf文件,并修改了它 -

前:

<Directory /> 
    Options FollowSymLinks 
    AllowOverride None 
    Require all denied 
</Directory> 

<Directory /usr/share> 
    AllowOverride None 
    Require all granted 
</Directory> 

<Directory /var/www/> 
    Options Indexes FollowSymLinks 
    AllowOverride None 
    Require all granted 
</Directory> 
<Directory /home/bahruz/www/> 
     Options Indexes FollowSymLinks 
     AllowOverride None 
     Require all granted 
</Directory> 

后:

<Directory /> 
    Options FollowSymLinks 
    AllowOverride None 
    Require all denied 
</Directory> 

<Directory /usr/share> 
    AllowOverride None 
    Require all granted 
</Directory> 

<Directory /var/www/> 
    Options Indexes FollowSymLinks 
    AllowOverride None 
    Require all granted 
</Directory> 
<Directory /home/bahruz/www/etap/> 
     Options Indexes FollowSymLinks 
     AllowOverride None 
     Require all granted 
</Directory> 

我这样做之后,https://url.com打开网站没有CSS和脚本和revertin g apache2.conf不起作用。我试图重新启动Apache服务器,但它没有帮助。

请告诉我为什么发生这种情况,我怎么能把一切都带回来?

在此先感谢。

回答

0

我无法解决问题,但恢复了以前的www备份帮助。也许在.htaccess中发生了一些事情,因为它有时会变得不可见或不适用。