I do not know why I keep getting "404 The requested resource is not available", when I am accessing my GWT Application. I am hosting my GWT application, on my TomEE/8.5.6 (7.0.2) at home, currently. Here is the situation.
Here is the details of my configuration.
I keep thinking that I need to associate port 8080 with "DocumentRoot "/opt/tomcat/webapps/Index", but I am unsure how. Here is the details of my UFW. I have similar setup in the router.
Help is greatly appreciated. |
Here is what the users expect.
1.If the users type (http://)www.zethanath.tk in the browser, mod_rewrite, near the end of http vhost conf,
would redirect the user to (https://www.zethanath.tk). I am using mod_rewrite here.
<VirtualHost *:80 >
...
RewriteEngine on RewriteCond %{SERVER_NAME} =www.zethanath.tk RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443
>
...
DocumentRoot "/opt/tomcat/webapps/Index"
JKMountCopy On
JKMount /* ajp13_worker
...
</VirtualHost>
</IfModule>
"DocumentRoot "/opt/tomcat/webapps/Index"
Maybe I should try get rid of this same line within http vhost config file?
Thank you so much for your reply. However, I heard that mod_proxy is slower that Mod JK, so I made a switch just a little while ago :)
Maybe the statement here does not take port 8080 into consideration ? -> "DocumentRoot "/opt/tomcat/webapps/Index"
Maybe I should try get rid of this same line within http vhost config file?
workers.tomcat_home=/opt/tomcat workers.java_home=/usr/lib/jvm/java-8-oracle/jre ps=/ worker.list=ajp13_worker worker.ajp13_worker.port=8009 worker.ajp13_worker.host=localhost worker.ajp13_worker.type=ajp13 worker.ajp13_worker.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=ajp13_worker
I found some article online mentioned that I need to create symbolic link for GWT application. I can't figure out if it is true or not, though. It said I need to add something like below to
SSL vhost configuration file.
DocumentRoot "/opt/tomcat/webapps/Index" Alias /Index "/opt/tomcat/webapps/Index" <Directory "/opt/tomcat/webapps/Index"> Options Indexes FollowSymLinks AllowOverride NONE Order allow,deny Allow from all </Directory> <Location "/Index/WEB-INF/"> AllowOverride None Deny from all </Location> JKMountCopy On JKMount /* ajp13_worker