Thank you for quick reply. Thank you for suggest LiveHTTPHeaders for firefox. I just tried. Good. It says that the file was loaded. So I think the problems are in the lines of:
<link rel="stylesheet" href=" http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"/> <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> <script src=" http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> These lines could not be forwarded under ssl? What should I do? Thanks. On Mon, Jul 11, 2016 at 9:28 AM, André Warnier (tomcat) <a...@ice-sa.com> wrote: > On 11.07.2016 15:57, Wayne Li wrote: > >> Hi All, >> >> > Hi. Thanks you for communicating the versions and the configuration below. > That helps a lot in helping you. > > Can you also provide the version of the mod_jk module ? It should be in > the first line of the Apache httpd error log (when it starts up). > > I have a servlet/jsp application running on tomcat 7.0.47. There are no >> static html files. >> Now I am try to use apache 2.4.7 (Ubuntu) >> as the front and forwad eveything to tomcat. I installed mod_jk using >> Ubuntu's software >> center.. Things are working: I type "localhost" on my brower bar, it shows >> my application. >> >> Then, I also trying to use ssl and generated self-signed certificate. It >> works, because >> the browser warns me about unknown certificate. If I type " >> https://www.mytest.com/index.jsp" >> on the browser's bar, it shows the page. But not correctly: the page >> contains: >> <link rel="stylesheet" href="my.css"/> >> <script src="my.js"></script> >> These extra files are not be called. >> > > Sorry to ask, but *are* these files present, in the same directory as your > index.jsp page ? > > > What is wrong on my side? Any information would be appreciated. Thank you >> in advance. >> > > There is some configuration information missing below : in > /etc/apache2/mods-available, there should be a couple of files : jk.load > and jk.conf. > What is the content of these files ? > > >> the /etc/apache2/conf/default-ssl.conf: >> <IfModule mod_ssl.c> >> <VirtualHost _default_:443> >> SSLEngine on >> SSLCertificateFile /etc/apache2/ssl/server.crt >> SSLCertificateFile /etc/apache2/ssl/server.crt >> > > above, duplicate lines ? > > > JkMount /* ajp13_worker >> </VirtualHost> >> </IfModule> >> >> the /etc/apache2/conf/000-default.conf: >> <VirtualHost *:80> >> ServerName localhost >> DocumentRoot /ROOT >> JkMountCopy On >> <Location /jk-status> >> JkMount jk-status >> Order deny,allow >> Allow from 127.0.0.1,localhost >> </Location> >> <Location /jk-manager> >> JkMount jk-manager >> Order deny,allow >> Allow from 127.0.0.1,localhost >> </Location> >> </VirtualHost> >> >> the /etc/apache2/workers/worker.properties: >> workers.tomcat_home=/tomcat >> workers.java_home=/jdk8 >> 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 >> worker.list=jk-status >> worker.jk-status.type=status >> worker.jk-status.read_only=true >> worker.list=jk-manager >> worker.jk-manager.type=status >> >> > That workers.properties looks old, and contains some deprecated lines : > > workers.tomcat_home=/tomcat > > workers.java_home=/jdk8 > > Also, you do not have a load-balancing setup, so I suggest to simplify the > above and just have the following in worker.properties : > > > worker.list=ajp13_worker > > worker.ajp13_worker.port=8009 > > worker.ajp13_worker.host=localhost > > worker.ajp13_worker.type=ajp13 > > You can find this here : > http://tomcat.apache.org/connectors-doc/common_howto/quick.html > -> Minimum workers.properties > > If you need the rest, you can re-add it later. > > Another recommendation : use the browser feature (or plugin or add-on) > that allows you to see the exact dialog between the browser and the server > (HTTP requests, HTTP responses, status codes, HTTP headers etc.). That will > immensely simplify the debugging work. > For example, in Mozilla Firefox I use "LiveHTTPHeaders", > and with IE, I use "Fiddler2". > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >