Reverse Proxy problem

8 views
Skip to first unread message

sid__

unread,
Jul 14, 2010, 4:29:26 AM7/14/10
to Orbited Discussion
Hi, Im trying to setup a reverse proxy for my server so that it allows
people behind firewalls to use our system. But when my application
loads it unable to fetch the orbited.js files

My setup is as follows

apache.conf

<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/trunk/public
</VirtualHost>

<VirtualHost *:80>
ServerName www.example.com
Redirect permanent / http://example.com
</VirtualHost>

<VirtualHost *:80>
ProxyPreserveHost On
ServerName o.example.com
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
</VirtualHost>


httpd.conf

Loadmodule expires_module /usr/lib/apache2/modules/
mod_expires.so
LoadModule proxy_http_module /usr/lib/apache2/modules/
mod_proxy_http.so
Loadmodule rewrite_module /usr/lib/apache2/modules/
mod_rewrite.so
LoadModule proxy_ftp_module /usr/lib/apache2/modules/
mod_proxy_ftp.so
LoadModule proxy_connect_module /usr/lib/apache2/modules/
mod_proxy_connect.so


orbited configuration file

127.0.0.1:8000 -> jabber.example.com:5222
localhost:8000 -> xxx.xxx.xxx.xxx:5222
* -> jabber.example.com:5222
* -> 75.101.169.252.5222
* -> localhost:4747


Another thing i find is when I try to hit the sub-domain on which my
orbited runs i get a no such resource error.

Im completely lost now and would appreciate any help.

Thanks in advance.


sid__

unread,
Jul 14, 2010, 4:33:26 AM7/14/10
to Orbited Discussion
Also when I hit o.helloexpert.com:8000/static i do find my files so Im
not sure if my proxy is not working because nslookup o.example.com
points to my ip. Is there something basic that I am missing?

On Jul 14, 9:29 am, sid__ <sid.ravichand...@gmail.com> wrote:
> Hi, Im trying to setup a reverse proxy for my server so that it allows
> people behind firewalls to use our system. But when my application
> loads it unable to fetch the orbited.js files
>
> My setup is as follows
>
> apache.conf
>
> <VirtualHost *:80>
>       ServerName example.com
>       DocumentRoot /var/www/trunk/public
> </VirtualHost>
>
> <VirtualHost *:80>
>       ServerNamewww.example.com
>       Redirect permanent /http://example.com
> </VirtualHost>
>
> <VirtualHost *:80>
>       ProxyPreserveHost On
>       ServerName o.example.com
>       ProxyPass /http://localhost:8000/
>       ProxyPassReverse /http://localhost:8000/
Reply all
Reply to author
Forward
0 new messages