Re: CSS not displayed

2013-03-06 Thread Olivier Desport
I've found the solution. I have enabled the line EXTRAOPTS=-de -m 16 
in /etc/default/haproxy. It works when this line is commented.


Thanks for your help.



Le 23/01/2013 17:13, shouldbe q931 a écrit :

Hi Olivier,

Just to recap, you have a webserver in subnet A, you have a HAProxy 
instance in subnet B


When you connect to the webserver directly, CSS works
When you connect to the webserver via HAProxy, CSS fails

You have now added a HAProxy instance in subnet A
When you connect via the HAProxy instance in subnet A CSS works

I have noticed that you are using

acl acl_web hdr(host) -i mysite.mydomain.com http://mysite.mydomain.com
use_backend web if acl_web

I have inferred from this that you have more acls configured in the 
frontend, and that you have more then one backend.


When you setup the HAProxy instance in subnet A, did you scp/rsync the 
config over and just change the bind IP address, or did you only use 
the relevant sections of the confg ?


I wonder if there is another ACL that is causing the issue ?

I would also be tempted to change the HAProy config on the instance in 
subnet B to point at the HAProxy in subnet A, then test connecting via 
the HAProxy instance in subnet B


If the two HAProxy configurations are identical apart from the bind IP 
address and the backend server address and this works, then I would 
investigate if there are any IP restrictions configured on the web 
server, if it fails, then I would suggest further investigation on the 
HAProxy instance in subnet B


Cheers




Re: CSS not displayed

2013-03-06 Thread Thomas Heil
Hi,

On 06.03.2013 16:58, Olivier Desport wrote:
 I've found the solution. I have enabled the line EXTRAOPTS=-de -m 16
 in /etc/default/haproxy. It works when this line is commented.

That means, you gave haproxy only 16MB of memory for his hard work. 
Maybe this was not enough.

 Thanks for your help.



 Le 23/01/2013 17:13, shouldbe q931 a écrit :
 Hi Olivier,

 Just to recap, you have a webserver in subnet A, you have a HAProxy
 instance in subnet B

 When you connect to the webserver directly, CSS works
 When you connect to the webserver via HAProxy, CSS fails

 You have now added a HAProxy instance in subnet A
 When you connect via the HAProxy instance in subnet A CSS works

 I have noticed that you are using

 acl acl_web hdr(host) -i mysite.mydomain.com http://mysite.mydomain.com
 use_backend web if acl_web

 I have inferred from this that you have more acls configured in the
 frontend, and that you have more then one backend.

 When you setup the HAProxy instance in subnet A, did you scp/rsync
 the config over and just change the bind IP address, or did you only
 use the relevant sections of the confg ?

 I wonder if there is another ACL that is causing the issue ?

 I would also be tempted to change the HAProy config on the instance
 in subnet B to point at the HAProxy in subnet A, then test connecting
 via the HAProxy instance in subnet B

 If the two HAProxy configurations are identical apart from the bind
 IP address and the backend server address and this works, then I
 would investigate if there are any IP restrictions configured on the
 web server, if it fails, then I would suggest further investigation
 on the HAProxy instance in subnet B

 Cheers




Re: CSS not displayed

2013-01-23 Thread Olivier Desport





Le 22/01/2013 19:35, Thomas Heil a écrit :

Hi,

On 22.01.2013 15:57, Olivier Desport wrote:
I use Haproxy with two web servers. The CSS are not well displayed 
(images, fonts...). The look of the page is different every time I 
refresh ! It works correctly when Haproxy is not used. Is there 
something to set up in haproxy or Apache configurations ?


Some lines of my haproxy.cfg :

modehttp

option httpclose
option http-server-close

frontend http_in 192.168.1.5:80

option httplog
option dontlognull
option forwardfor

acl acl_web hdr(host) -i mysite.mydomain.com
use_backend web if acl_web

backend web
stats enable
   balance source
   cookie SERVERID insert nocache indirect
   server web-1 web-1.mydomain.com:80 cookie W1 check inter 1000 
maxconn 250 maxqueue 50
server web-2 web-2.mydomain.com:80 cookie W2 check inter 1000 
maxconn 250 maxqueue 50

option httpchk HEAD /_check.html HTTP/1.0




Please try with a default section that holds:

defaults
option  http-server-close
option  forceclose

I think you're missing http-server-close on backend web

cheers
thomas

I tried this settings and it doesn't change anything.


Re: CSS not displayed

2013-01-23 Thread Baptiste
On Wed, Jan 23, 2013 at 9:08 AM, Olivier Desport
olivier.desp...@ac-versailles.fr wrote:




 Le 22/01/2013 19:35, Thomas Heil a écrit :

 Hi,

 On 22.01.2013 15:57, Olivier Desport wrote:

 I use Haproxy with two web servers. The CSS are not well displayed (images,
 fonts...). The look of the page is different every time I refresh ! It works
 correctly when Haproxy is not used. Is there something to set up in haproxy
 or Apache configurations ?

 Some lines of my haproxy.cfg :

 modehttp

 option httpclose
 option http-server-close

 frontend http_in 192.168.1.5:80

 option httplog
 option dontlognull
 option forwardfor

 acl acl_web hdr(host) -i mysite.mydomain.com
 use_backend web if acl_web

 backend web
 stats enable
balance source
cookie SERVERID insert nocache indirect
server web-1 web-1.mydomain.com:80 cookie W1 check inter 1000 maxconn 250
 maxqueue 50
 server web-2 web-2.mydomain.com:80 cookie W2 check inter 1000 maxconn
 250 maxqueue 50
 option httpchk HEAD /_check.html HTTP/1.0



 Please try with a default section that holds:

 defaults
 option  http-server-close
 option  forceclose

 I think you're missing http-server-close on backend web

 cheers
 thomas

 I tried this settings and it doesn't change anything.


Hi Olivier,

There's no reason why HAProxy will prevent loading some object or
alter their content... unless you turned on compression in your
configuration (which does not seem to be the case).
Could you send me your whole configuration (privately)?
If the service is publicly available, could you also provide me the
information too?

cheers
Baptiste



Re: CSS not displayed

2013-01-23 Thread Olivier Desport




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_contentvi} 
{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_contentvi} 
{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_contentvi} 
{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/; 

Re: CSS not displayed

2013-01-23 Thread shouldbe q931
On Wed, Jan 23, 2013 at 11:43 AM, Olivier Desport 
olivier.desp...@ac-versailles.fr wrote:


  Le 22/01/2013 17:06, Tait Clarridge a écrit :


 Olivier Desport 
 mailto:olivier.desp...@ac-versailles.frolivier.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_contentvi}
 {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_contentvi}
 {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_contentvi}
 {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 
 /:17http://eole.ac-versailles.fr/
 GET http://eole.ac-versailles.fr/media/system/js/mootools-more.js 
 /:17http://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 
 /:11http://eole.ac-versailles.fr/
 GET http://eole.ac-versailles.fr/templates/beez_20/css/position.css 
 /:12http://eole.ac-versailles.fr/
 GET http://eole.ac-versailles.fr/templates/beez_20/css/layout.css 
 /:13http://eole.ac-versailles.fr/
 GET http://eole.ac-versailles.fr/templates/beez_20/css/general.css 
 /:15http://eole.ac-versailles.fr/
 GET http://eole.ac-versailles.fr/templates/beez_20/css/personal.css 
 /:16http://eole.ac-versailles.fr/
 GET http://eole.ac-versailles.fr/templates/beez_20/javascript/hide.js 
 /:17http://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:25http://eole.ac-versailles.fr/
2. 
 dmootools-core.js:367http://eole.ac-versailles.fr/media/system/js/mootools-core.js
3. 
 emootools-core.js:368http://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/; http://eole.ac-versailles.fr/Mozilla/5.0 
 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko)
 Ubuntu Chromium/23.0.1271.97 

Re: CSS not displayed

2013-01-23 Thread Olivier Desport





Le 23/01/2013 14:02, shouldbe q931 a écrit :
On Wed, Jan 23, 2013 at 11:43 AM, Olivier Desport 
olivier.desp...@ac-versailles.fr 
mailto:olivier.desp...@ac-versailles.fr wrote:



Le 22/01/2013 17:06, Tait Clarridge a écrit :



Olivier Desport mailto:olivier.desp...@ac-versailles.fr
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
http://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 http://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_contentvi}
{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
http://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 http://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_contentvi}
{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
http://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 http://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_contentvi}
{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.

Re: CSS not displayed

2013-01-23 Thread shouldbe q931
Hi Olivier,

Just to recap, you have a webserver in subnet A, you have a HAProxy
instance in subnet B

When you connect to the webserver directly, CSS works
When you connect to the webserver via HAProxy, CSS fails

You have now added a HAProxy instance in subnet A
When you connect via the HAProxy instance in subnet A CSS works

I have noticed that you are using

acl acl_web hdr(host) -i mysite.mydomain.com
use_backend web if acl_web

I have inferred from this that you have more acls configured in the
frontend, and that you have more then one backend.

When you setup the HAProxy instance in subnet A, did you scp/rsync the
config over and just change the bind IP address, or did you only use the
relevant sections of the confg ?

I wonder if there is another ACL that is causing the issue ?

I would also be tempted to change the HAProy config on the instance in
subnet B to point at the HAProxy in subnet A, then test connecting via the
HAProxy instance in subnet B

If the two HAProxy configurations are identical apart from the bind IP
address and the backend server address and this works, then I would
investigate if there are any IP restrictions configured on the web server,
if it fails, then I would suggest further investigation on the HAProxy
instance in subnet B

Cheers


Re: CSS not displayed

2013-01-22 Thread Ben Timby
On Tue, Jan 22, 2013 at 9:57 AM, Olivier Desport
olivier.desp...@ac-versailles.fr wrote:
 I use Haproxy with two web servers. The CSS are not well displayed (images,
 fonts...). The look of the page is different every time I refresh ! It works
 correctly when Haproxy is not used. Is there something to set up in haproxy
 or Apache configurations ?

It may not anything specific to haproxy. I would suggest looking at
your apache log files (for 403, 404 errors or similar). Also, you can
try a tool like Firebug (for Firefox, or developer tools for whatever
browser you use) such tools will have a network panel, you can see
which specific resources did not load and why. This might help you
track down the issue.



Re: CSS not displayed

2013-01-22 Thread Olivier Desport
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 :

On Tue, Jan 22, 2013 at 9:57 AM, Olivier Desport
olivier.desp...@ac-versailles.fr wrote:

I use Haproxy with two web servers. The CSS are not well displayed (images,
fonts...). The look of the page is different every time I refresh ! It works
correctly when Haproxy is not used. Is there something to set up in haproxy
or Apache configurations ?

It may not anything specific to haproxy. I would suggest looking at
your apache log files (for 403, 404 errors or similar). Also, you can
try a tool like Firebug (for Firefox, or developer tools for whatever
browser you use) such tools will have a network panel, you can see
which specific resources did not load and why. This might help you
track down the issue.




Re: CSS not displayed

2013-01-22 Thread Jonathan Matthews
On 22 January 2013 15:59, Olivier Desport
olivier.desp...@ac-versailles.fr wrote:
 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.

Try enabling this setting in the backend:
http://cbonte.github.com/haproxy-dconv/configuration-1.4.html#option%20httpclose

Jonathan
-- 
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html



RE: CSS not displayed

2013-01-22 Thread Lukas Tribus

 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.


What are those Firebug warnings exactly? Also, can you show
us your haproxy logs?

You have to do some troubleshooting to provide the list with enough details,
post access and errors logs, relevant configuration and capture the tcp traffic
from frontent and backend.


  



Re: CSS not displayed

2013-01-22 Thread Thomas Heil
Hi,

On 22.01.2013 15:57, Olivier Desport wrote:
 I use Haproxy with two web servers. The CSS are not well displayed
 (images, fonts...). The look of the page is different every time I
 refresh ! It works correctly when Haproxy is not used. Is there
 something to set up in haproxy or Apache configurations ?

 Some lines of my haproxy.cfg :

 modehttp

 option httpclose
 option http-server-close

 frontend http_in 192.168.1.5:80

 option httplog
 option dontlognull
 option forwardfor

 acl acl_web hdr(host) -i mysite.mydomain.com
 use_backend web if acl_web

 backend web
 stats enable
balance source
cookie SERVERID insert nocache indirect
server web-1 web-1.mydomain.com:80 cookie W1 check inter 1000
 maxconn 250 maxqueue 50
 server web-2 web-2.mydomain.com:80 cookie W2 check inter 1000
 maxconn 250 maxqueue 50
 option httpchk HEAD /_check.html HTTP/1.0



Please try with a default section that holds:

defaults
option  http-server-close
option  forceclose

I think you're missing http-server-close on backend web

cheers
thomas