2016-07-18 5 views
1

私はsymfony 3をインストールし、ドキュメントhttp://symfony.com/doc/current/cookbook/configuration/web_server_configuration.htmlに従ってnginxを設定しました。私はapp_dev.phpを開き、Symfonyは/ _wdtにajaxリクエストを送信しますが、404エラーを受け取ります。Symfony 3が_wdt/wdtのURLを開くことができないのはなぜですか?

Name      Method Scheme Host Path 
-------------------------- -------- -------- ------ ----------------------------------- 
    _wdt      ANY  ANY  ANY /_wdt/{token} 
    _profiler_home    ANY  ANY  ANY /_profiler/ 
    _profiler_search   ANY  ANY  ANY /_profiler/search 
    _profiler_search_bar  ANY  ANY  ANY /_profiler/search_bar 
    _profiler_info    ANY  ANY  ANY /_profiler/info/{about} 
    _profiler_phpinfo   ANY  ANY  ANY /_profiler/phpinfo 
    _profiler_search_results ANY  ANY  ANY /_profiler/{token}/search/results 
    _profiler     ANY  ANY  ANY /_profiler/{token} 
    _profiler_router   ANY  ANY  ANY /_profiler/{token}/router 
    _profiler_exception  ANY  ANY  ANY /_profiler/{token}/exception 
    _profiler_exception_css ANY  ANY  ANY /_profiler/{token}/exception.css 
    _twig_error_test   ANY  ANY  ANY /_error/{code}.{_format} 
    homepage     ANY  ANY  ANY /
-------------------------- -------- -------- ------ ----------------------------------- 

_wdtルートが存在します。 私はルートを確認しました。なぜそれは動作しません?

答えて

0

あなたが使用する必要があるものを確認するには、まずapp_dev.phpのURLを参照してください。私の例で私のWebホストは「192.168.0.100」です:Firefoxで

http://192.168.0.100/app_dev.php/

(他のブラウザが別のコマンドを使用します)ページ上で右クリックし、「エレメントを点検」を選択し、「ネットワーク]をクリックします"タブをクリックし、ページを更新します。

あなたが何かのように表示されるはずです。そして、これは、あなたがあなたのブラウザに入力することができますルートで、たとえば上記の例では入力した GETのXHR http://192.168.40.200/app_dev.php/_wdt/d8013c

を:

http://192.168.40.200/app_dev.php/_wdt/d8013c

関連する問題