Apache configuration.

View: New views
5 Messages — Rating Filter:   Alert me  

Apache configuration.

by Galina Manirko :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hello Sakai Development Group!



I need to configure Apache HTTP server to be in front of my Tomcat
server that runs Sakai. Could you, please, tell me if we have somewhere
a detailed instruction on how to implement this task? I try to follow
the instruction in 'Sakai 2.4 Admin Guide - Advanced Tomcat (and Apache)
Configuration' but my knowledge in Apache configuration is so poor that
I cannot make it work; I keep getting error message 'Service is not
available'.

I would really appreciate if you can help me with this problem.



Regards

Galina Manirko

Network Administrator

Alameda County Office of Education



P.S. We use Sakai v.2.4 on Tomcat-5.5.23 and Apache 2.2 on Red Hat
Linux.

[see attachment: "message0.html", size: 4572 bytes]


Attachments:

message0.html
https://collab.sakaiproject.org/access/content/attachment/c729edb8-79e4-45a2-0061-91c251d9300f/message0.html

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.


Re: Apache configuration.

by Eric Hattemer-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

If you don't really need apache to be the frontend, the simple fix is to
go into tomcat's server.xml, replace 8080 with 80, and replace 8443 with
443.

What are the most popular production environments?  mod_jk?  Proxying?  
Simple Tomcat?  Tomcat Clustering?  Is there an advantage to anything
above Simple tomcat if all the pages are served by tomcat anyway?

-Eric Hattemer


Galina Manirko wrote:

> Hello Sakai Development Group!
>
>
>
> I need to configure Apache HTTP server to be in front of my Tomcat
> server that runs Sakai. Could you, please, tell me if we have somewhere
> a detailed instruction on how to implement this task? I try to follow
> the instruction in 'Sakai 2.4 Admin Guide - Advanced Tomcat (and Apache)
> Configuration' but my knowledge in Apache configuration is so poor that
> I cannot make it work; I keep getting error message 'Service is not
> available'.
>
> I would really appreciate if you can help me with this problem.
>
>
>
> Regards
>
> Galina Manirko
>
> Network Administrator
>
> Alameda County Office of Education
>
>
>
> P.S. We use Sakai v.2.4 on Tomcat-5.5.23 and Apache 2.2 on Red Hat
> Linux.
>
> [see attachment: "message0.html", size: 4572 bytes]
>
>
> Attachments:
>
> message0.html
> https://collab.sakaiproject.org/access/content/attachment/c729edb8-79e4-45a2-0061-91c251d9300f/message0.html
>
> ----------------------
> This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
> You can modify how you receive notifications at My Workspace > Preferences.
>
>  

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.


Re: Apache configuration.

by R.P. Aditya :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Fri, Dec 14, 2007 at 05:45:51PM -0800, Eric Hattemer wrote:
> If you don't really need apache to be the frontend, the simple fix is to
> go into tomcat's server.xml, replace 8080 with 80, and replace 8443 with
> 443.

but then you have to run tomcat as root or allow non-root users to bind to
privileged ports (or run Windows which is saying the same thing)

> What are the most popular production environments?  mod_jk?  Proxying?  
> Simple Tomcat?  Tomcat Clustering?  Is there an advantage to anything
> above Simple tomcat if all the pages are served by tomcat anyway?

UM uses Apache+mod_jk -- there are a few advantages:

- serving static content with Apache avoids using a thread per request in
Tomcat, which is key for Tomcat scalability (if you have presence turned off,
about 40+% of hits are for static content typically, depending on your
expiration policy)

- Apache native SSL is much faster than Tomcat SSL unless you use APR

- In our case, our SSO Apache module (Cosign -- www.weblogin.org) is better
tested and capable than the Java filter version

- there is no equivalent to mod_security in Tomcat :-)

more reasons via Google including at:

http://wiki.apache.org/tomcat/FAQ/Connectors

Hope that helps,
Adi

> Galina Manirko wrote:
> >Hello Sakai Development Group!
> >
> >
> >
> >I need to configure Apache HTTP server to be in front of my Tomcat
> >server that runs Sakai. Could you, please, tell me if we have somewhere
> >a detailed instruction on how to implement this task? I try to follow
> >the instruction in 'Sakai 2.4 Admin Guide - Advanced Tomcat (and Apache)
> >Configuration' but my knowledge in Apache configuration is so poor that
> >I cannot make it work; I keep getting error message 'Service is not
> >available'.
> >
> >I would really appreciate if you can help me with this problem.
> >
> >
> >
> >Regards
> >
> >Galina Manirko
> >
> >Network Administrator
> >
> >Alameda County Office of Education
> >
> >
> >
> >P.S. We use Sakai v.2.4 on Tomcat-5.5.23 and Apache 2.2 on Red Hat
> >Linux.
> >
> >[see attachment: "message0.html", size: 4572 bytes]
> >
> >
> >Attachments:
> >
> >message0.html
> >https://collab.sakaiproject.org/access/content/attachment/c729edb8-79e4-45a2-0061-91c251d9300f/message0.html
> >
> >----------------------
> >This automatic notification message was sent by Sakai Collab
> >(https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a.
> >sakai-dev) site.
> >You can modify how you receive notifications at My Workspace > Preferences.
> >
> >  
>
> ----------------------
> This automatic notification message was sent by Sakai Collab
> (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a.
> sakai-dev) site.
> You can modify how you receive notifications at My Workspace > Preferences.
>

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.


Re: Apache configuration.

by Brian Jorgensen-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On this note, I haven't been able to find an official list of Sakai's
static content. Since there are authorization issues for most content
that has been added within the system, do you, Adi, generally limit
apache to serving up /library/*?

And Tony, do you think that we should add whatever this list turns out
to be to

http://bugs.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-+Advanced+Tomcat++%28and+Apache%29+Configuration

??


Thanks,

Brian




R.P. Aditya wrote:

> On Fri, Dec 14, 2007 at 05:45:51PM -0800, Eric Hattemer wrote:
>> If you don't really need apache to be the frontend, the simple fix is to
>> go into tomcat's server.xml, replace 8080 with 80, and replace 8443 with
>> 443.
>
> but then you have to run tomcat as root or allow non-root users to bind to
> privileged ports (or run Windows which is saying the same thing)
>
>> What are the most popular production environments?  mod_jk?  Proxying?  
>> Simple Tomcat?  Tomcat Clustering?  Is there an advantage to anything
>> above Simple tomcat if all the pages are served by tomcat anyway?
>
> UM uses Apache+mod_jk -- there are a few advantages:
>
> - serving static content with Apache avoids using a thread per request in
> Tomcat, which is key for Tomcat scalability (if you have presence turned off,
> about 40+% of hits are for static content typically, depending on your
> expiration policy)
>
> - Apache native SSL is much faster than Tomcat SSL unless you use APR
>
> - In our case, our SSO Apache module (Cosign -- www.weblogin.org) is better
> tested and capable than the Java filter version
>
> - there is no equivalent to mod_security in Tomcat :-)
>
> more reasons via Google including at:
>
> http://wiki.apache.org/tomcat/FAQ/Connectors
>
> Hope that helps,
> Adi
>
>> Galina Manirko wrote:
>>> Hello Sakai Development Group!
>>>
>>>
>>>
>>> I need to configure Apache HTTP server to be in front of my Tomcat
>>> server that runs Sakai. Could you, please, tell me if we have somewhere
>>> a detailed instruction on how to implement this task? I try to follow
>>> the instruction in 'Sakai 2.4 Admin Guide - Advanced Tomcat (and Apache)
>>> Configuration' but my knowledge in Apache configuration is so poor that
>>> I cannot make it work; I keep getting error message 'Service is not
>>> available'.
>>>
>>> I would really appreciate if you can help me with this problem.
>>>
>>>
>>>
>>> Regards
>>>
>>> Galina Manirko
>>>
>>> Network Administrator
>>>
>>> Alameda County Office of Education
>>>
>>>
>>>
>>> P.S. We use Sakai v.2.4 on Tomcat-5.5.23 and Apache 2.2 on Red Hat
>>> Linux.
>>>
>>> [see attachment: "message0.html", size: 4572 bytes]
>>>
>>>
>>> Attachments:
>>>
>>> message0.html
>>> https://collab.sakaiproject.org/access/content/attachment/c729edb8-79e4-45a2-0061-91c251d9300f/message0.html
>>>
>>> ----------------------
>>> This automatic notification message was sent by Sakai Collab
>>> (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a.
>>> sakai-dev) site.
>>> You can modify how you receive notifications at My Workspace > Preferences.
>>>
>>>  
>> ----------------------
>> This automatic notification message was sent by Sakai Collab
>> (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a.
>> sakai-dev) site.
>> You can modify how you receive notifications at My Workspace > Preferences.
>>
>
> ----------------------
> This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
> You can modify how you receive notifications at My Workspace > Preferences.
>

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.


Re: Apache configuration.

by R.P. Aditya :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Fri, Dec 14, 2007 at 08:07:03PM -0700, Brian Jorgensen wrote:
> On this note, I haven't been able to find an official list of Sakai's
> static content. Since there are authorization issues for most content
> that has been added within the system, do you, Adi, generally limit
> apache to serving up /library/*?

from a few months ago:

http://article.gmane.org/gmane.comp.cms.sakai.devel/16529/match=ctlib

in JkMount syntax:

JkMount       /*   loadbalancer
JkUnMount       /library/* loadbalancer
JkUnMount       /portal/styles/* loadbalancer
JkUnMount       /portal/scripts/* loadbalancer

Adi

> And Tony, do you think that we should add whatever this list turns out
> to be to
>
> http://bugs.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-+Advanced+Tomcat++%28and+Apache%29+Configuration
>
> ??
>
>
> Thanks,
>
> Brian
>
>
>
>
> R.P. Aditya wrote:
> >On Fri, Dec 14, 2007 at 05:45:51PM -0800, Eric Hattemer wrote:
> >>If you don't really need apache to be the frontend, the simple fix is to
> >>go into tomcat's server.xml, replace 8080 with 80, and replace 8443 with
> >>443.
> >
> >but then you have to run tomcat as root or allow non-root users to bind to
> >privileged ports (or run Windows which is saying the same thing)
> >
> >>What are the most popular production environments?  mod_jk?  Proxying?  
> >>Simple Tomcat?  Tomcat Clustering?  Is there an advantage to anything
> >>above Simple tomcat if all the pages are served by tomcat anyway?
> >
> >UM uses Apache+mod_jk -- there are a few advantages:
> >
> >- serving static content with Apache avoids using a thread per request in
> >Tomcat, which is key for Tomcat scalability (if you have presence turned
> >off,
> >about 40+% of hits are for static content typically, depending on your
> >expiration policy)
> >
> >- Apache native SSL is much faster than Tomcat SSL unless you use APR
> >
> >- In our case, our SSO Apache module (Cosign -- www.weblogin.org) is better
> >tested and capable than the Java filter version
> >
> >- there is no equivalent to mod_security in Tomcat :-)
> >
> >more reasons via Google including at:
> >
> >http://wiki.apache.org/tomcat/FAQ/Connectors
> >
> >Hope that helps,
> >Adi
> >
> >>Galina Manirko wrote:
> >>>Hello Sakai Development Group!
> >>>
> >>>
> >>>
> >>>I need to configure Apache HTTP server to be in front of my Tomcat
> >>>server that runs Sakai. Could you, please, tell me if we have somewhere
> >>>a detailed instruction on how to implement this task? I try to follow
> >>>the instruction in 'Sakai 2.4 Admin Guide - Advanced Tomcat (and Apache)
> >>>Configuration' but my knowledge in Apache configuration is so poor that
> >>>I cannot make it work; I keep getting error message 'Service is not
> >>>available'.
> >>>
> >>>I would really appreciate if you can help me with this problem.
> >>>
> >>>
> >>>
> >>>Regards
> >>>
> >>>Galina Manirko
> >>>
> >>>Network Administrator
> >>>
> >>>Alameda County Office of Education
> >>>
> >>>
> >>>
> >>>P.S. We use Sakai v.2.4 on Tomcat-5.5.23 and Apache 2.2 on Red Hat
> >>>Linux.
> >>>
> >>>[see attachment: "message0.html", size: 4572 bytes]
> >>>
> >>>
> >>>Attachments:
> >>>
> >>>message0.html
> >>>https://collab.sakaiproject.org/access/content/attachment/c729edb8-79e4-45a2-0061-91c251d9300f/message0.html
> >>>
> >>>----------------------
> >>>This automatic notification message was sent by Sakai Collab
> >>>(https://collab.sakaiproject.org/portal) from the DG: Development
> >>>(a.k.a. sakai-dev) site.
> >>>You can modify how you receive notifications at My Workspace >
> >>>Preferences.
> >>>
> >>>
> >>----------------------
> >>This automatic notification message was sent by Sakai Collab
> >>(https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a.
> >>sakai-dev) site.
> >>You can modify how you receive notifications at My Workspace >
> >>Preferences.
> >>
> >
> >----------------------
> >This automatic notification message was sent by Sakai Collab
> >(https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a.
> >sakai-dev) site.
> >You can modify how you receive notifications at My Workspace > Preferences.
> >
>

----------------------
This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
You can modify how you receive notifications at My Workspace > Preferences.