GWTアプリケーションにアクセスしているときに「404要求されたリソースが使用できません」という理由がわかりません。私は、自宅のTomEE/8.5.6(7.0.2)でGWTアプリケーションをホストしています。GWTアプリケーションが取得する "404要求されたリソースが利用できません"
ここに状況があります。私のように "TomEEのWebアプリケーションマネージャ" からの私のGWTアプリケーションを使用することができる午前
(HTTP)://192.168.1.70:8080 /インデックスしかし
、私が入力したときに(HTTP):ブラウザで//www.zethanath.tkは、私はなるだろう(HTTPS):HTTPステータスここでは404
と//www.zethanath.tk/は私の設定の詳細です。
Ubuntu:/opt/tomcat/webapps$ ls -l
total 20932
drwxrwxr-x 14 tomcat tomcat 4096 Aug 4 11:46 docs
drwxrwxr-x 5 tomcat tomcat 4096 Aug 4 11:46 host-manager
drwxrwxrwx 5 tomcat tomcat 4096 Aug 25 08:46 Index
-rwxrwxrwx 1 tomcat tomcat 21411520 Aug 25 08:46 Index.war
drwxrwxr-x 5 tomcat tomcat 4096 Aug 4 11:46 manager
drwxrwxr-x 3 tomcat tomcat 4096 Aug 8 17:30 ROOT
sudoのナノ000-は、default.conf
<VirtualHost *:80 >
Protocols h2 http/1.1
ServerAdmin [email protected]
ServerName www.zethanath.tk
ServerAlias servlet.zethanath.tk zethanath.tk
DocumentRoot "/opt/tomcat/webapps/Index"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.zethanath.tk
RewriteRule^https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
sudoのナノデフォルト-ssl.confの私は "DocumentRootの" でポート8080を関連付ける必要があることを考え続ける
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
Protocols h2 http/1.1
ServerAdmin [email protected]
ServerName www.zethanath.tk
ServerAlias servlet.zethanath.tk zethanath.tk
DocumentRoot "/opt/tomcat/webapps/Index"
JKMountCopy On
JKMount /* ajp13_worker
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
/opt/tomcat/webapps/Index "と入力してください。
ここに私のUFWの詳細があります。ルータ。
sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Apache Full ALLOW Anywhere
20/tcp ALLOW Anywhere
21/tcp ALLOW Anywhere
990/tcp ALLOW Anywhere
40000:50000/tcp ALLOW Anywhere
Apache Secure ALLOW Anywhere
8080 ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
20/tcp (v6) ALLOW Anywhere (v6)
21/tcp (v6) ALLOW Anywhere (v6)
990/tcp (v6) ALLOW Anywhere (v6)
40000:50000/tcp (v6) ALLOW Anywhere (v6)
Apache Secure (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)
お願いします。
"戦争全体を公開する"という意味がわからない場合は、現在の設定でhttp://localhost/WEB-INF/web.xmlを開いてください。 –
お返事ありがとうございました。また、Mod JKに固執する方法はありますか? Mod JKのほうがいいと聞きましたので、Mod ProxyからMod JKに切り替えました。私は再びスイッチバックすることはできません:) – sethanath
http vhostの終わりにMod_rewriteを行ったことにも注意してください。この部分はユーザーをSSLのvhostにリダイレクトし、SSLのvhostはMod JKを使用してユーザーをGWTアプリケーションにリダイレクトします。 – sethanath