Unix Technical Forum

Apache and Proxy

This is a discussion on Apache and Proxy within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, I have a Mandriva with Apache 2.0 that I tried to set to use the proxy function but ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 04:32 PM
Condi
 
Posts: n/a
Default Apache and Proxy

Hi,
I have a Mandriva with Apache 2.0 that I tried to set to use the proxy
function but does not work

<VirtualHost *>
ServerName www.mioserver.mio
ErrorLog logs/mioserver.mio-error_log
CustomLog logs/mioserver.mio-access_log combined
env=!do_not_log
ProxyPassReverse / http://192.168.0.52/
ProxyPass / http://192.168.0.52/
</VirtualHost>

Any Idea?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 04:32 PM
Davide Bianchi
 
Posts: n/a
Default Re: Apache and Proxy

On 2006-01-16, Condi <condivisione@gmail.com> wrote:
> I have a Mandriva with Apache 2.0 that I tried to set to use the proxy
> function but does not work


"does not work" means?

Is mod_proxy enabled/loaded? If you use apachectl configtest what does
it says?

Davide

--
When computers emit smoke, it means they've chosen a new Pope.
Unfortunately, they invariably choose the wrong one and immediately
get condemned to nonfunctionality for heresy.
--Anthony DeBoer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 04:32 PM
Condi
 
Posts: n/a
Default Re: Apache and Proxy

Here the result of apachectl configtest
[root@serverone conf]# apachectl configtest
Syntax OK

Does not work
means that I am not get the page that sit in the other server

LoadModule proxy_module modules/mod_proxy.so

Hopping that it is more clear now.
Thank you

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 04:32 PM
Davide Bianchi
 
Posts: n/a
Default Re: Apache and Proxy

On 2006-01-16, Condi <condivisione@gmail.com> wrote:
> Does not work
> means that I am not get the page that sit in the other server


And what do you get then? An error or a local page is displayed? If the
syntax is ok but the Proxy directive isn't called could be that your
VirtualHost isn't checked. If you get another page or a 404 error it
could be that another VirtualHost is answering the requests. Then the
problem is in the VHost definition.

Davide

--
"Our business model works even if *ALL* software is free.
How does Microsoft's business model look? -- not so good."
-- the response from the Linux community
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 04:32 PM
Condi
 
Posts: n/a
Default Re: Apache and Proxy

Hi change the config like that

<VirtualHost www.ioprogetto.net:80>
ServerName www.ioprogetto.net
ErrorLog logs/ioprogetto.net-error_log
CustomLog logs/ioprogetto.net-access_log combined
env=!do_not_log
DocumentRoot /var/www/html/1
<Directory "/var/www/html/1/">
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ProxyPassReverse /test http://192.168.0.52/
ProxyPass /test http://192.168.0.52/
</VirtualHost>

the virtualhost is working since I see the page that is different from
the default,
when I go under test I have error 403

[Tue Jan 17 11:34:13 2006] [error] [client 216.58.41.33] client denied
by server configuration: proxy:http://192.168.0.52/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 04:32 PM
Condi
 
Posts: n/a
Default Re: Apache and Proxy

Hi change the config like that

<VirtualHost www.ioprogetto.net:80>
ServerName www.ioprogetto.net
ErrorLog logs/ioprogetto.net-error_log
CustomLog logs/ioprogetto.net-access_log combined
env=!do_not_log
DocumentRoot /var/www/html/1
<Directory "/var/www/html/1/">
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ProxyPassReverse /test http://192.168.0.52/
ProxyPass /test http://192.168.0.52/
</VirtualHost>

the virtualhost is working since I see the page that is different from
the default,
when I go under test I have error 403

[Tue Jan 17 11:34:13 2006] [error] [client X.X.X.X] client denied by
server configuration: proxy:http://192.168.0.52/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 04:32 PM
Davide Bianchi
 
Posts: n/a
Default Re: Apache and Proxy

On 2006-01-17, Condi <condivisione@gmail.com> wrote:
> [Tue Jan 17 11:34:13 2006] [error] [client 216.58.41.33] client denied
> by server configuration: proxy:http://192.168.0.52/


It seems that you miss some other Proxy directive in your configuration
file, probably you'll have to add a Proxy on and maybe ProxyVia off before
your ProxyPass directives.

Davide

--
Security and MicroSoft: "Bringing the world to your desktop - and your
desktop to the world" "The name doesn't go on until the insecurity goes in"
--Peter Gutmann
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com