Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] configure jetty with apache via Mod_Proxy

Hi,

   It's an apache related issue and not Jetty one. Anyway...

   From http://ubuntuforums.org/showthread.php?t=1263047
   "A few things you can try.

   Make sure you have this directive global
   NameVirtualHost *:80

   Add this directive inside each VirtualHost
   ServerName www.domain.com

   It looks like it's trying to resolve the fqdn. Add the fqdn(your own "www.domain.com") into your /etc/hosts file.

   See how that goes."

Rgrds,
JV -- julioviegas.com


On Wed, Nov 4, 2009 at 23:41, Daniele Dellafiore <ildella@xxxxxxxxx> wrote:
Hi. I am trying to configure jetty to work with apache following this
instructions:

http://docs.codehaus.org/display/JETTY/Configuring+mod_proxy

target is to make http://mydomain.com/mywebapp answer like the request
has been made to http://mydomain.com:8080/mywebapp being jetty running
on port 8080. A standard situation.

I am using apache 2.2 and jetty 7 (under ubuntu 9.04)

I have installed and activated mod_proxy, then I have configured a new
a new apache site and enabled it with a2ensite.
The new site configuration file have this content:

<VirtualHost *.80>

ProxyRequests Off
ProxyPreserveHost On

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

ProxyPass /newsletter http://localhost:8080/newsletter
ProxyPassReverse /newsletter http://localhost:8080/newsletter

</VirtualHost>

when I restart apache2, I get:

 [error] (EAI 2)Name or service not known: Could not resolve host name
*.80 -- ignoring!

and the integration does not work. I have tried to follow other guide
to understand what I am missing but withoud success.
I think I have to define a NameVirtualHost but do not exacly where and
how... anyone has experience and can help me?

Thanks.

--
Daniele Dellafiore
http://danieledellafiore.net
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top