You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tapas Mishra <mi...@gmail.com> on 2010/07/08 11:52:17 UTC

[users@httpd] setting up a reverse proxy for sakai

I have a working instance of sakai on one of our clusters.Sakai can be read here
http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7)


We would like the user to be able to reach it via Apache Reverse proxy

 ProxyPass /sakai http://192.1681.5:9090/portal
       ProxyPassReverse /sakai http://192.1681.5:9090/portal


But when any one tries to reach the page from internet
http://mydomain.com/sakai they are not able to reach the CSS,Java
scripts ,images correctly.

which should not happen and be taken care by the reverse proxy

the request is not getting the correct response here are the apache
headers for the problem


>From a client browser on internet

following headers were recieved

http://pastebin.com/k54kDYAB

where as on LAN while accessing via IP:9080/portal the following
headers were recieved
http://pastebin.com/0BaEViH4

If any one can find any problem here let me know.
I am right now searching for the problem in the headers.







--
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers



-- 
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting up a reverse proxy for sakai

Posted by Tapas Mishra <mi...@gmail.com>.
Ohh I see.Actually I have also noticed this thing and was wondering if
there is any way to do so.
I will forward this message to the right people as I am not the
developer of sakai.

-- 
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting up a reverse proxy for sakai

Posted by Tom Evans <te...@googlemail.com>.
On Thu, Jul 8, 2010 at 10:52 AM, Tapas Mishra <mi...@gmail.com> wrote:
> I have a working instance of sakai on one of our clusters.Sakai can be read here
> http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7)
>
>
> We would like the user to be able to reach it via Apache Reverse proxy
>
>  ProxyPass /sakai http://192.1681.5:9090/portal
>        ProxyPassReverse /sakai http://192.1681.5:9090/portal
>
>
> But when any one tries to reach the page from internet
> http://mydomain.com/sakai they are not able to reach the CSS,Java
> scripts ,images correctly.
>
> which should not happen and be taken care by the reverse proxy
>

Your application is generating URLs like this:

GET /library/skin/default/portal.css
GET /portal/styles/portalstyles.css
GET /library/js/jquery.js

mod_proxy does not rewrite HTML, only a few specific headers, so your
application must generate the correct URLs, eg
/'sakai/styles/portalstyles.css'. Configure your application
correctly.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org