大まかな原因が分からない為、曖昧な質問となります。ご了承ください。
conohaのVPSにローカルと同じバージョンのjavaを導入し、サーバ側でactivator new
で適当にアプリを作成しテスト起動させ、プロキシを設定してローカルの方で確認したのですが以下の画像のように質素な画面しか写りません。
(プロキシ設定にnginx利用)
ローカルであれば下のような画像が映ります。画像は拾った物なのでバージョンなど違いますが,play側で用意されたテンプレートにhtmlファイルが埋め込まれているのが確認できますよね?
ご教授お願いします。
routesファイル ↓
# Routes # This file defines all application routes (Higher priority routes first) # ~~~~ # An example controller showing a sample home page GET /play/ controllers.HomeController.index # An example controller showing how to use dependency injection GET /play/count controllers.CountController.count # An example controller showing how to write asynchronous code GET /play/message controllers.AsyncController.message # Map static resources from the /public folder to the /assets URL path GET /play/assets/*file controllers.Assets.versioned(path="/public", file: Asset) [y-s@150-95-204-32 conf]$ cat routes # Routes # This file defines all application routes (Higher priority routes first) # ~~~~ # An example controller showing a sample home page GET /play/ controllers.HomeController.index # An example controller showing how to use dependency injection GET /play/count controllers.CountController.count # An example controller showing how to write asynchronous code GET /play/message controllers.AsyncController.message # Map static resources from the /public folder to the /assets URL path GET /play/assets/*file controllers.Assets.versioned(path="/public", file: Asset)
nginxのdefault.conf↓
server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location /nginx { root /usr/share/nginx/html; index index.html index.htm; } location /play/ { proxy_pass http://localhost:9000; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ .php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ .php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /.ht { # deny all; #} }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。