[nycphp-talk] Re: Apache Proxy restart error
Joe Leo
joeleo724 at gmail.com
Tue Mar 25 13:20:27 EDT 2008
Hi All, Any linux/Apache guru's that can help me with problem below?
I need to be able to get a mod-proxy working.
Some additional info:
The error problem reported in my last email only happens when I enter the
following config statements in my apache Vhost setting in my conf file.
ProxyPass /projects/dc http://h111.MyDomain <http://h111.mydomain/>
ProxyPassReverse /projects/dc http://h111.MyDomain <http://h111.mydomain/>
If I remove or uncomment the above statement apache restarts fine and works
fine. I can load my site and everything seems to work.
What I'm aiming to do is have my proxy service web request to other servers
via the proxy. But, I need to get pass the problem.
I'd be willing to pay someone for help with this.
Joe
On Mon, Mar 24, 2008 at 5:13 PM, Joe Leo <joeleo724 at gmail.com> wrote:
> Hi all, I am new to the list.... I hope I could get some help with a
> problem getting mod_proxy working.
> I've installed mod_proxy on a debian etch server and enabled it and set my
> proxy directives per some how-to doc's... (new to linux) - All seems to have
> worked fine until I configured the proxy settting in directives shown below.
> And, When I attempt to restart apache I get this error:
>
> Forcing reload of web server (apache2)...Syntax error on line 10 of
> /etc/apache2/sites-enabled/MyDomain.com:
> Invalid ProxyPass parameter. Parameter must be in the form 'key=value'
> failed!
>
> Below is my Vhost settings:
>
> NameVirtualHost 192.168.100.10:80
> <VirtualHost 192.168.100.10:80>
> ServerAdmin webmaster at localhost
>
> DocumentRoot /var/www/MyDomain/public_html
> <Directory />
> Options FollowSymLinks
> AllowOverride None
>
> ProxyPass /projects/dc http://h111.MyDomain
> ProxyPassReverse /projects/dc http://h111.MyDomain
>
> </Directory>
> <Directory /var/www/MyDomain/public_html>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride AuthConfig
> Order allow,deny
> allow from all
> # This directive allows us to have apache2's default start
> page
> # in /apache2-default/, but still have / go to the right
> place
> #RedirectMatch ^/$ /apache2-default/
> </Directory>
>
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> <Directory "/usr/lib/cgi-bin">
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
>
> ErrorLog /var/log/apache2/error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/access.log combined
> ServerSignature On
>
> Alias /doc/ "/usr/share/doc/"
> <Directory "/usr/share/doc/">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from 127.0.0.0/255.0.0.0 ::1/128
> </Directory>
>
> </VirtualHost>
>
>
> Below is my Proxy.Conf settings:
>
>
> <IfModule mod_proxy.c>
> #turning ProxyRequests on and allowing proxying from all may allow
> #spammers to use your proxy to send email.
>
>
> ProxyRequests Off
>
> <Proxy *>
> AddDefaultCharset off
> Order deny,allow
> #Deny from all
> Allow from all
> #Allow from .example.com
>
> # Define the character set for proxied FTP directory
> listings
> ProxyFtpDirCharset UTF-8
> </Proxy>
>
> # Enable/disable the handling of HTTP/1.1 "Via:" headers.
> # ("Full" adds the server version; "Block" removes all outgoing
> Via: headers)
> # Set to one of: Off | On | Full | Block
>
> ProxyVia On
> </IfModule>
>
>
> Per the error msg reported above, I am not sure what this refers to and
> where to look to even try to fix:
>
> "Parameter must be in the form 'key=value'"
>
> Appreciate any comments/suggestions:
>
> Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080325/e8fda22f/attachment.html>
More information about the talk
mailing list