Apache Server configuration support - Newbie ProxyPass Problems apache 2.2

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > Newbie ProxyPass Problems apache 2.2





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Newbie ProxyPass Problems apache 2.2
julian@isolve-online.com

2006-01-31, 7:27 pm

Hi,

I have installed apache 2.2 on linux fedora 4 and i am trying to set it
up to forward http requests to an application (ZServer) on port 8080.

These docs http://httpd.apache.org/docs/2.2/mod/mod_proxy.html. talk
about ProxyPass and ProxyPassReverse. I have added the following to the
httpd.conf file.


ProxyRequests On
ProxyVia On

<Proxy *>
Order deny,allow
Deny from all
Allow from internal.example.com
</Proxy>

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /site1 http://site1:8080
ProxyPassReverse /site1 http://site1:8080

But get the following error

Failed to start apache :

Syntax error on line 435 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'ProxyRequests', perhaps misspelled or defined by a
module not included in the server configuration

When i restart the server.

mikedawg@gmail.com

2006-01-31, 7:27 pm

Which line in your post corresponds to line 435 of your httpd.conf
file? Do you need both a forward and reverse proxy, or just a reverse
proxy? Do you have mod_proxy compiled in with httpd or as a dso, can
you verify this?

mikedawg@gmail.com

2006-01-31, 7:27 pm

A couple things, which line in your post is equiv to line 435 in your
httpd.conf? Second thing, do you have mod_proxy compiled into your
apache, or set up as a dso, can you please verify this?

Also, it looks as if you got this setup to be both a forward and
reverse proxy? Do you need it to be setup as a forward proxy?

Read240@hotmail.com

2006-02-01, 7:53 am

Line 435: ProxyRequests On

I believe i need both forward and reverse proxy, i am trying to set up
zope-server with apache using the process described
here

http://www.zope.org/Members/anser/apache_zserver

I am not sure how to tell wether i have mod_proxy combined in with
httpd or as a dso please could you explain to
me how you tell

Thank you

Davide Bianchi

2006-02-01, 7:53 am

On 2006-02-01, Read240@hotmail.com <Read240@hotmail.com> wrote:
> I am not sure how to tell wether i have mod_proxy combined in with
> httpd or as a dso please could you explain to
> me how you tell


If it's compiled built-in it will be showed when you do a httpd -l,
otherwise there should be a LoadModule directive in your configuration
file to load the module at run time.

Davide

--
Move along, move along, nothing to see here, definitely no evil mind
control software here, move along, move along...
--Thorf
Read240@hotmail.com

2006-02-01, 7:53 am

ive tried to use the httpd -l command from the apache and bin folder.

following error: command not found

Should i be using the command somewhere else?

Davide Bianchi

2006-02-01, 7:53 am

On 2006-02-01, Read240@hotmail.com <Read240@hotmail.com> wrote:
> ive tried to use the httpd -l command from the apache and bin folder.


Maybe under your distribution has a different name, like 'apache2'
or 'httpd2'. apachectl -l should do the same.

Davide


--
It's spelled Linux, but it's pronounced `Not Windows'
It's spelled Windows, but it's pronounced `Aieeeeeeee!'
-- Shannon Hendrix
julian@isolve-online.com

2006-02-01, 7:53 am

Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c

There is no load module directive in the .conf file. there is no
mod_proxy.so file in /apache2/modules/.

What should i do next?

Thanks in advance

mikedawg@gmail.com

2006-02-01, 6:08 pm

How, or what package did you compile/install/rpm in order to get httpd
2.2.0?

Read240@hotmail.com

2006-02-01, 6:08 pm

I kept these notes whilst making the installation

1. download apache2.2.0 file httpd-2.2.0.tar.gz from apache site
2. Extract source from file using
$gzip -d httpd-2.2.0.tar.gz
$ tar xvf httpd-2.2.0.tar
3. ./configure --prefix=/usr/local/apache2
4. make
5. make install
6. /usr/local/apache2/bin/apachectl -k start

mikedawg@gmail.com

2006-02-01, 6:08 pm

You just need some more configuration options in there when you
configure apache.

For example:

../configure --prefix=/usr/local/apache2 --enable-proxy (at least)

Read240@hotmail.com

2006-02-02, 8:06 am

Do i need to reinstall apache to reconfigure it?

Read240@hotmail.com

2006-02-02, 8:06 am

All modules are now configured, apache now runs however will not
redirect to the application server running on port 8080.

If anyone has any idea it would be a great help.

Thanks

mikedawg@gmail.com

2006-02-02, 6:02 pm

What does it say in your apache error log?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com