Late to the party as always: See reply inline.
On 7/11/2016 10:38 AM, Wayne Li wrote: > 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. I don't know if code.jquery.com supports both HTTP and HTTPS. You could use a different CDN for the jQuery code if you want. Something like the following will support both if code.jquery.com does: <script src="//code.jquery.com/jquery-1.11.3.min.js></script> This is called protocol-relative URLs. It should work for href as well. There are some issues. 1. Mail clients may translate it to file:// - Outlook in particular 2. IE 6 doesn't like this at all - who supports IE 6? 3. IE 7-8 fetches the resource twice - who supports IE 7-8? According to the jquery CDN site, it's good to add the integrity and crossingorigin attributes. This allows browsers to use subresource integrity checking to make sure that third party resources haven't been tampered with. > > > 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". . . . just my two cents /mde/
signature.asc
Description: OpenPGP digital signature