Le 22/01/2013 17:06, Tait Clarridge a écrit :
Olivier Desport <mailto:olivier.desp...@ac-versailles.fr>
22 January, 2013 10:59 AM
The site I want to display is designed with Joomla. There are no
errors in Apache logs et Firebugs shows several warnings for js
files. The site is well displayed when I connect directly to the
Apache server.
Le 22/01/2013 16:21, Ben Timby a écrit :
Hi Olivier,
When you connect, is the link to the CSS page using the hostname that
is configured to go through HAProxy? Can you see in the logs a request
for the CSS file?
Tait
The URL of the site is http://eole.ac-versailles.fr
The proxy and the web servers are not in the same network. I checked the
firewall and nothing is blocked. However, when I install an haproxy
server with the same haproxy.cfg in the same network as the web servers,
the pages load correctly. Is there a specific setting in haproxy in this
case ?
The haproxy logs :
############################################################################################
Jan 23 09:05:42 localhost haproxy[5902]: 172.31.130.49:43971
[23/Jan/2013:09:05:42.110] http_in sylvebarbe/sylvebarbe-2 0/0/3/5/8 304
185 - - --VN 1/1/1/1/0 0/0 {eole.ac-versailles.fr|Opera/9.80 (X11; Linux
x86_64; Edition Linux Mint) Presto/2.12.388
Version/12.12|http://eole.ac-versailles.fr/index.php?option=com_content&vi}
{Apache/2.2.22 (Debia|||} "GET /templates/beez_20/css/print.css HTTP/1.1"
Jan 23 09:05:42 localhost haproxy[5902]: 172.31.130.49:43972
[23/Jan/2013:09:05:42.113] http_in sylvebarbe/sylvebarbe-2 0/0/1/6/8 304
185 - - --VN 2/2/0/0/0 0/0 {eole.ac-versailles.fr|Opera/9.80 (X11; Linux
x86_64; Edition Linux Mint) Presto/2.12.388
Version/12.12|http://eole.ac-versailles.fr/index.php?option=com_content&vi}
{Apache/2.2.22 (Debia|||} "GET /templates/beez_20/css/general.css HTTP/1.1"
Jan 23 09:05:42 localhost haproxy[5902]: 172.31.130.49:43972
[23/Jan/2013:09:05:42.113] http_in sylvebarbe/sylvebarbe-2 0/0/1/6/8 304
185 - - --VN 2/2/0/0/0 0/0 {eole.ac-versailles.fr|Opera/9.80 (X11; Linux
x86_64; Edition Linux Mint) Presto/2.12.388
Version/12.12|http://eole.ac-versailles.fr/index.php?option=com_content&vi}
{Apache/2.2.22 (Debia|||} "GET /templates/beez_20/css/general.css HTTP/1.1"
##########################################################################################
But some files can't be loaded by the browser :
###########################################################################################
GET http://eole.ac-versailles.fr/media/system/js/caption.js /:17
<http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/media/system/js/mootools-more.js /:17
<http://eole.ac-versailles.fr/>
GET
http://eole.ac-versailles.fr/templates/beez_20/javascript/md_stylechanger.js
/:17 <http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/templates/system/css/system.css /:11
<http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/templates/beez_20/css/position.css /:12
<http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/templates/beez_20/css/layout.css /:13
<http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/templates/beez_20/css/general.css /:15
<http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/templates/beez_20/css/personal.css /:16
<http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/templates/beez_20/javascript/hide.js
/:17 <http://eole.ac-versailles.fr/>
GET
http://eole.ac-versailles.fr/administrator/templates/bluestork/images/header/icon-48-themes.png
eole.ac-versailles.fr:198 <http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/images/banners/ac-versailles.png
eole.ac-versailles.fr:289 <http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/images/banners/mw_joomla_logo02.png
eole.ac-versailles.fr:309 <http://eole.ac-versailles.fr/>
GET http://eole.ac-versailles.fr/images/banners/white.png
eole.ac-versailles.fr:329 <http://eole.ac-versailles.fr/>
1. Uncaught ReferenceError: JCaption is not defined
eole.ac-versailles.fr:25 <http://eole.ac-versailles.fr/>
1.
(anonymous function)eole.ac-versailles.fr:25
<http://eole.ac-versailles.fr/>
2.
dmootools-core.js:367
<http://eole.ac-versailles.fr/media/system/js/mootools-core.js>
3.
emootools-core.js:368
<http://eole.ac-versailles.fr/media/system/js/mootools-core.js>
###########################################################################################################################
Apache logs :
#################################################################################
172.31.130.49 - - [23/Jan/2013:12:36:15 +0100] "GET
/templates/beez_20/css/position.css HTTP/1.1" 200 1690
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:15 +0100] "GET
/templates/beez_20/css/layout.css HTTP/1.1" 200 6415
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:15 +0100] "GET / HTTP/1.1" 200
13695 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML,
like Gecko) Ubuntu Chromium/23.0.1271.97 Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:15 +0100] "GET
/templates/beez_20/javascript/md_stylechanger.js HTTP/1.1" 200 763
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:15 +0100] "GET
/templates/beez_20/javascript/hide.js HTTP/1.1" 200 1974
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:15 +0100] "GET
/media/system/js/mootools-more.js HTTP/1.1" 200 68033
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:16 +0100] "GET
/templates/beez_20/css/backlayout.png HTTP/1.1" 200 368
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:16 +0100] "GET
/images/mw_joomla_logo02.png HTTP/1.1" 200 6285
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:16 +0100] "GET
/templates/beez_20/images/personal/bandeau.png HTTP/1.1" 200 97448
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
172.31.130.49 - - [23/Jan/2013:12:36:16 +0100] "GET
/images/banners/ac-versailles.png HTTP/1.1" 200 8206
"http://eole.ac-versailles.fr/" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97
Chrome/23.0.1271.97 Safari/537.11"
#################################################################################