You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sa...@women-at-work.org on 2004/12/01 10:06:37 UTC

Getting rid of servername.com:8080/Stuff/app

Hello!

Does anyone know how to tell Apache to Rewrite


servername.com:8080/Stuff/app


to servername.com


?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Getting rid of servername.com:8080/Stuff/app

Posted by sa...@women-at-work.org.
Thanks!

Actually I mean the line that will actually do the rewrite.



> I forgot to mention that there's a good howto for mod_jk with load 
> balancing on
> http://raibledesigns.com/tomcat/
> 
> It's inspiring: I used the same kind of config to deploy two apps on 
> the same machine each with its Tomcat instance. etc.
> 
> If that config could work on Mac Os X, it would be a lifesaver.
> 
> eCOMPOSITE
> J2EE & Multimedia
> cyril@ecomposite.fr
> 
> Le Dec 1, 2004, à 3:54 PM, Alexander Wallace a écrit :
> 
> >> This involves to steps:
> >> - install and configure mod_jk to connect apache httpd and tomcat (if 
> >> you use tomcat)
> >> Then all requests to servername.com/Stuff/app will be redirected to 
> >> the appserver a
> >>
> >> - configure mod_rewrite to rewrite all requests to /* to /Stuff/app/*
> >> This is usually the subject of a full book as mod_rewrite even brews 
> >> coffee...
> >>
> >> There's a mod_rewrite faq somewhere, too
> >>
> >> eCOMPOSITE
> >> J2EE & Multimedia
> >> cyril@ecomposite.fr
> >> Tel 06 63 16 45 41
> >> Le Dec 1, 2004, à 10:06 AM, sarah.simbad@women-at-work.org a écrit :
> >>
> >>> Hello!
> >>>
> >>> Does anyone know how to tell Apache to Rewrite
> >>>
> >>>
> >>> servername.com:8080/Stuff/app
> >>>
> >>>
> >>> to servername.com
> >>>
> >>>
> >>> ?
> >>>
> >>> Thanks!
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: 
> >>> tapestry-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Getting rid of servername.com:8080/Stuff/app

Posted by Cyril Godefroy <cy...@ecomposite.fr>.
I forgot to mention that there's a good howto for mod_jk with load 
balancing on
http://raibledesigns.com/tomcat/

It's inspiring: I used the same kind of config to deploy two apps on 
the same machine each with its Tomcat instance. etc.

If that config could work on Mac Os X, it would be a lifesaver.

eCOMPOSITE
J2EE & Multimedia
cyril@ecomposite.fr

Le Dec 1, 2004, à 3:54 PM, Alexander Wallace a écrit :

>> This involves to steps:
>> - install and configure mod_jk to connect apache httpd and tomcat (if 
>> you use tomcat)
>> Then all requests to servername.com/Stuff/app will be redirected to 
>> the appserver a
>>
>> - configure mod_rewrite to rewrite all requests to /* to /Stuff/app/*
>> This is usually the subject of a full book as mod_rewrite even brews 
>> coffee...
>>
>> There's a mod_rewrite faq somewhere, too
>>
>> eCOMPOSITE
>> J2EE & Multimedia
>> cyril@ecomposite.fr
>> Tel 06 63 16 45 41
>> Le Dec 1, 2004, à 10:06 AM, sarah.simbad@women-at-work.org a écrit :
>>
>>> Hello!
>>>
>>> Does anyone know how to tell Apache to Rewrite
>>>
>>>
>>> servername.com:8080/Stuff/app
>>>
>>>
>>> to servername.com
>>>
>>>
>>> ?
>>>
>>> Thanks!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: 
>>> tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Getting rid of servername.com:8080/Stuff/app

Posted by phillip rhodes <rh...@yahoo.com>.
If you are using mod_proxy to proxy to your
application server, just set the ServerName directive
in your httpd file.
Mod_proxy will fix any http headers to use this
location.

Let me now if you have need of apache mod_proxy
assistance.

--- Alexander Wallace <aw...@rwmotloc.com> wrote:

> you could also configure tomcat (or whatever server
> you are using) to 
> use a different port if it is not being taken by
> another server.    Or 
> even ask your firewall to direct all port 80
> trfaffic to 8080 on the 
> machine running your app... Same goes for the secure
> port.
> 
> Cyril Godefroy wrote:
> 
> > This involves to steps:
> > - install and configure mod_jk to connect apache
> httpd and tomcat (if 
> > you use tomcat)
> > Then all requests to servername.com/Stuff/app will
> be redirected to 
> > the appserver a
> >
> > - configure mod_rewrite to rewrite all requests to
> /* to /Stuff/app/*
> > This is usually the subject of a full book as
> mod_rewrite even brews 
> > coffee...
> >
> > There's a mod_rewrite faq somewhere, too
> >
> > eCOMPOSITE
> > J2EE & Multimedia
> > cyril@ecomposite.fr
> > Tel 06 63 16 45 41
> > Le Dec 1, 2004, � 10:06 AM,
> sarah.simbad@women-at-work.org a �crit :
> >
> >> Hello!
> >>
> >> Does anyone know how to tell Apache to Rewrite
> >>
> >>
> >> servername.com:8080/Stuff/app
> >>
> >>
> >> to servername.com
> >>
> >>
> >> ?
> >>
> >> Thanks!
> >>
> >>
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >>
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Getting rid of servername.com:8080/Stuff/app

Posted by Alexander Wallace <aw...@rwmotloc.com>.
you could also configure tomcat (or whatever server you are using) to 
use a different port if it is not being taken by another server.    Or 
even ask your firewall to direct all port 80 trfaffic to 8080 on the 
machine running your app... Same goes for the secure port.

Cyril Godefroy wrote:

> This involves to steps:
> - install and configure mod_jk to connect apache httpd and tomcat (if 
> you use tomcat)
> Then all requests to servername.com/Stuff/app will be redirected to 
> the appserver a
>
> - configure mod_rewrite to rewrite all requests to /* to /Stuff/app/*
> This is usually the subject of a full book as mod_rewrite even brews 
> coffee...
>
> There's a mod_rewrite faq somewhere, too
>
> eCOMPOSITE
> J2EE & Multimedia
> cyril@ecomposite.fr
> Tel 06 63 16 45 41
> Le Dec 1, 2004, à 10:06 AM, sarah.simbad@women-at-work.org a écrit :
>
>> Hello!
>>
>> Does anyone know how to tell Apache to Rewrite
>>
>>
>> servername.com:8080/Stuff/app
>>
>>
>> to servername.com
>>
>>
>> ?
>>
>> Thanks!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Getting rid of servername.com:8080/Stuff/app

Posted by Cyril Godefroy <cy...@ecomposite.fr>.
This involves to steps:
- install and configure mod_jk to connect apache httpd and tomcat (if 
you use tomcat)
Then all requests to servername.com/Stuff/app will be redirected to the 
appserver a

- configure mod_rewrite to rewrite all requests to /* to /Stuff/app/*
This is usually the subject of a full book as mod_rewrite even brews 
coffee...

There's a mod_rewrite faq somewhere, too

eCOMPOSITE
J2EE & Multimedia
cyril@ecomposite.fr
Tel 06 63 16 45 41
Le Dec 1, 2004, à 10:06 AM, sarah.simbad@women-at-work.org a écrit :

> Hello!
>
> Does anyone know how to tell Apache to Rewrite
>
>
> servername.com:8080/Stuff/app
>
>
> to servername.com
>
>
> ?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org