You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Martyniak <jm...@ix.netcom.com> on 2005/01/13 21:22:37 UTC
Using DNS name instead of port number
I would like to be able to use the following Virtual host
apps.beforedawn.com to run my app. Instead of having to include the 8080.
Their is also a Webserver running on the box.
So that I could run http://apps.beforedawn.com/index.jsp
So my question is can this be done inside of Tomcat, or will I need to use
mod_jk.
Thanks for any and all help.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Using DNS name instead of port number
Posted by John Martyniak <jm...@ix.netcom.com>.
Thanks for the help.
I will try and get the mod_jk working. I think that will give me the most
flexibility for the future.
-John
On 1/13/05 5:53 PM, "Hassan Schroeder" <ha...@webtuitive.com> wrote:
> John Martyniak wrote:
>> Unfortunately this is for one of my external boxes (read have to pay ungodly
>> sums of money to get another block of IP addresses).
>
> Well, you only need one, eh? :-)
>
>> So if I set this up using mod_jk then I will have to do the following
>
> It's been a long time since I used Apache in front of Tomcat, but
> that generally looked OK. Try it. You certainly won't need to use
> mod_rewrite, though.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Using DNS name instead of port number
Posted by Hassan Schroeder <ha...@webtuitive.com>.
John Martyniak wrote:
> Unfortunately this is for one of my external boxes (read have to pay ungodly
> sums of money to get another block of IP addresses).
Well, you only need one, eh? :-)
> So if I set this up using mod_jk then I will have to do the following
It's been a long time since I used Apache in front of Tomcat, but
that generally looked OK. Try it. You certainly won't need to use
mod_rewrite, though.
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Using DNS name instead of port number
Posted by John Martyniak <jm...@ix.netcom.com>.
Unfortunately this is for one of my external boxes (read have to pay ungodly
sums of money to get another block of IP addresses).
So if I set this up using mod_jk then I will have to do the following
<VirtualHost www.befordawn.com>
DocumentRoot /var/www/htmlbeforedawn
ErrorLog logs/beforedawn_error_log
DirectoryIndex index.php index.html index.htm index.shtml
ServerAdmin root@ beforedawn.com
# ServerName www. beforedawn.com
ServerSignature email
TransferLog logs/ beforedawn_access_log
</VirtualHost>
<VirtualHost apps.beforedawn.com>
DocumentRoot /var/www/appbeforedawn
ErrorLog logs/appbeforedawn_error_log
DirectoryIndex index.php index.html index.htm index.shtml
ServerAdmin root@beforedawn.com
# ServerName apps.beforedawn.com
ServerSignature email
TransferLog logs/appsbeforedawn_access_log
JKMount /apps worker1
JKMount /apps/* worker1
</VirtualHost>
<VirtualHost diagnostics.beforedawn.com>
DocumentRoot /var/www/diagbeforedawn
ErrorLog logs/diagbeforedawn_error_log
DirectoryIndex index.php index.html index.htm index.shtml
ServerAdmin root@beforedawn.com
# ServerName diagnostics.beforedawn.com
ServerSignature email
TransferLog logs/diagbeforedawn_access_log
JKMount /diag worker1
JKMount /diag/* worker1
</VirtualHost>
Will this get me http://apps.beforedawn.com/index.jsp and
http://diagnostics.beforedawn.com/index.jsp?
Or would I have to put a rewrite in also? So that it would redirect any
request to http://apps.beforedawn.com/apps/index.jsp
Because I assume that the JKMount must correspond to the directory in the
webapps directory.
I am so confused on the way that mod_jk works!
-john
On 1/13/05 4:11 PM, "Hassan Schroeder" <ha...@webtuitive.com> wrote:
> John Martyniak wrote:
>> The server currently only has one IP address and several virtual hosts.
>
>> For example on this box I would to do the following:
>> Web Server:
>> Serves http://www.beforedawn.com
>>
>> Tomcat Server:
>> http://apps.beforedawn.com/index.jsp
>> http://diagnostics.beforedawn.com/index.jsp
>>
>> Is this possible?
>
> Yeah, but with only one IP you'll have to use mod_jk or mod_proxy.
>
> I'd say adding an IP address would be the easier setup :-)
>
> FWIW, this is how I run my dev box -- a couple of IP addresses for
> different versions of Tomcat and one for Apache (for the occasional
> PHP job).
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Using DNS name instead of port number
Posted by Hassan Schroeder <ha...@webtuitive.com>.
John Martyniak wrote:
> The server currently only has one IP address and several virtual hosts.
> For example on this box I would to do the following:
> Web Server:
> Serves http://www.beforedawn.com
>
> Tomcat Server:
> http://apps.beforedawn.com/index.jsp
> http://diagnostics.beforedawn.com/index.jsp
>
> Is this possible?
Yeah, but with only one IP you'll have to use mod_jk or mod_proxy.
I'd say adding an IP address would be the easier setup :-)
FWIW, this is how I run my dev box -- a couple of IP addresses for
different versions of Tomcat and one for Apache (for the occasional
PHP job).
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Using DNS name instead of port number
Posted by John Martyniak <jm...@ix.netcom.com>.
The server currently only has one IP address and several virtual hosts.
Some that are served by the Web Server and some that are going to be served
by Tomcat.
For example on this box I would to do the following:
Web Server:
Serves http://www.beforedawn.com
Tomcat Server:
http://apps.beforedawn.com/index.jsp
http://diagnostics.beforedawn.com/index.jsp
Is this possible?
-John
On 1/13/05 3:38 PM, "Hassan Schroeder" <ha...@webtuitive.com> wrote:
> John Martyniak wrote:
>> I would like to be able to use the following Virtual host
>> apps.beforedawn.com to run my app. Instead of having to include the 8080.
>> Their is also a Webserver running on the box.
>>
>> So that I could run http://apps.beforedawn.com/index.jsp
>>
>> So my question is can this be done inside of Tomcat, or will I need to use
>> mod_jk.
>
> If the system in question has multiple IP addresses, yes. Configure
> your Tomcat connector to listen to the appropriate address(es) on
> port 80 and configure Apache to listen to the other address(es).
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Using DNS name instead of port number
Posted by Hassan Schroeder <ha...@webtuitive.com>.
John Martyniak wrote:
> I would like to be able to use the following Virtual host
> apps.beforedawn.com to run my app. Instead of having to include the 8080.
> Their is also a Webserver running on the box.
>
> So that I could run http://apps.beforedawn.com/index.jsp
>
> So my question is can this be done inside of Tomcat, or will I need to use
> mod_jk.
If the system in question has multiple IP addresses, yes. Configure
your Tomcat connector to listen to the appropriate address(es) on
port 80 and configure Apache to listen to the other address(es).
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org