-
1. Re: blueprint of standalone.xml to become a optimized webserver
rhusar Nov 3, 2011 8:07 PM (in response to nimo22)1 of 1 people found this helpfulHi Nimo,
Or would it be better to use a httpd in front of jboss as7 and set up these settings only in .htaccess?
I would personally never use the AS as the front facing server, I mean exposing it directly. There are quite a few reasons why not do it, the biggest showstoppers for me being: single point of failure/no clustering, performance of serving static resources, downtime (in a way users dont even get the "Server did ooo." page) on restart or crash (also downtime on switching to clustered environment), separation of networks, etc. Plus how do you even make AS to listen on port 80? http://community.jboss.org/wiki/RunningJBossOnPort80Or443
AS7 comes integrated with mod_cluster http://www.jboss.org/mod_cluster/ which autoconfigures itself, you should give it a try.
HTH,
Rado
-
2. Re: blueprint of standalone.xml to become a optimized webserver
nimo22 Nov 4, 2011 5:23 AM (in response to rhusar)Yeah, you are right. Though Jboss As is shipped with a webserver (jboss webserver), it is better to use httpd as a webserver and NOT the built-in-webserver.
I am not sure about the vulnerability, stability and security if using these two together.
It would be really nice, if Jboss AS will be shipped with preconfigured best-practice-templates, to make the use of httpd much more easier!
-
3. Re: blueprint of standalone.xml to become a optimized webserver
rhusar Nov 4, 2011 5:43 AM (in response to nimo22)Hi Nimo,
I am not sure about the vulnerability, stability and security if using these two together.
So what are you concerns? We can have a look at them here. I can only see major advantages when using a balancer with the AS.
It would be really nice, if Jboss AS will be shipped with preconfigured best-practice-templates, to make the use of httpd much more easier!
As I mentioned mod_cluster, AS comes preconfigured with mod_cluster so you do not have to do ANY change to the AS in order to connect up with the balancer. Everything is "automagic" All you need are installing instructions for Apache HTTPd here http://docs.jboss.org/mod_cluster/1.1.0/html_single/#d0e261
Rado
-
4. Re: blueprint of standalone.xml to become a optimized webserver
nimo22 Nov 4, 2011 5:55 AM (in response to rhusar)Thank you! I will using mod_cluster.