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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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/ |
| |||
| 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/ |
| ||||
| 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 |
| Thread Tools | |
| Display Modes | |
|
|