尝试访问sulu-standard的前端和管理员时,在此服务器上找不到请求的URL / en

时间:2016-05-30 16:11:00

标签: symfony sulu

我正在努力开始使用sulu作为CMS,并按照“入门”中提到的步骤流程进行操作。指南,我已将我的虚拟服务器设置为' personal'这是我的网站空间

<?xml version="1.0" encoding="utf-8"?>
<webspace xmlns="http://schemas.sulu.io/webspace/webspace"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://schemas.sulu.io/webspace/webspace http://schemas.sulu.io/webspace/webspace-1.0.xsd">

    <name>personal</name>
    <key>personal</key>

    <localizations>
        <localization language="en" default="true"/>
        <localization language="de"/>
    </localizations>

    <theme>
        <key>default</key>
        <default-templates>
            <default-template type="page">default</default-template>
            <default-template type="homepage">overview</default-template>
        </default-templates>

        <error-templates>
            <error-template default="true">ClientWebsiteBundle:views:error.html.twig</error-template>
            <error-template code="404">ClientWebsiteBundle:views:error404.html.twig</error-template>
        </error-templates>
    </theme>

    <navigation>
        <contexts>
            <context key="main">
                <meta>
                    <title lang="de">Hauptnavigation</title>
                    <title lang="en">Mainnavigation</title>
                </meta>
            </context>
        </contexts>
    </navigation>

    <portals>
        <portal>
            <name>personal</name>
            <key>personal</key>
            <resource-locator>
                <strategy>tree</strategy>
            </resource-locator>

            <environments>
                <environment type="prod">
                    <urls>
                        <url>personal/{localization}</url>
                    </urls>
                </environment>
                <environment type="stage">
                    <urls>
                        <url>personal/{localization}</url>
                    </urls>
                </environment>
                <environment type="dev">
                    <urls>
                        <url>personal/{localization}</url>
                    </urls>
                </environment>
            </environments>
        </portal>
    </portals>
</webspace>

我使用

构建了dev和prod版本
php app/console sulu:build {env}

我可以看到任何sulu日志,除了我的xml被命名为personal.xml之外,我没有做任何其他更改。帮忙?

当我尝试在phpcrsh shell中找到路由时,我找到了一个节点

jcr:primaryType | NAME (15)      | nt:unstructured                      |
jcr:mixinTypes  | NAME (9)       | [0] sulu:path                        |
jcr:uuid        | STRING (36)    | c4419533-8aff-4799-ac89-c8401a84f7e5 |
sulu:history    | BOOLEAN (0)    | false                                |
sulu:content    | REFERENCE (36) | ad186c73-6b01-4d13-8b4e-48b7128b1712 |
sulu:created    | DATE (29)      | 2016-05-29T12:45:13+05:30            |
sulu:changed    | DATE (29)      | 2016-05-29T12:45:13+05:30            |

1 nodes in set (0.000009 sec)

0 个答案:

没有答案