473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help required regarding tomcat configuration for subdomain setup

Hi !

Can anyone help me in sorting following problem

I am trying to create subdomains e.g hub.youpark.com, youandus.youpark.com.
i have entered appropriate entries in httpd.conf and server.xml. The problem is with URL's.

When someone enters the URL

hub.youpark.com
it changes to:
https://www.youpark.com/isv/isvLogin.jsp

I have used mod_write options, but it gives the servlet error(Resource not found)

It would be highly appreciated, if someone help me to come out from this problem

Regards
TAK
Feb 19 '07 #1
5 8298
Motoma
3,237 Expert 2GB
Hi !

Can anyone help me in sorting following problem

I am trying to create subdomains e.g hub.youpark.com, youandus.youpark.com.
i have entered appropriate entries in httpd.conf and server.xml. The problem is with URL's.

When someone enters the URL

hub.youpark.com
it changes to:
https://www.youpark.com/isv/isvLogin.jsp

I have used mod_write options, but it gives the servlet error(Resource not found)

It would be highly appreciated, if someone help me to come out from this problem

Regards
TAK
Could you post the appropriate sections of your httpd.conf and server.xml files?
Feb 21 '07 #2
Could you post the appropriate sections of your httpd.conf and server.xml files?
We are using apache - tomcat combination. We have only one webapp i.e. only one web-inf directory with web.xml containing servlet entries.

httpd.conf entry is

<VirtualHost 83.138.166.43:80>
ServerAlias www.hub.youpark.com
ServerName hub.youpark.com
DocumentRoot /home/uakram/public_html/isv
<Directory "/home/uakram/public_html/isv">
Options Indexes FollowSymLinks
</Directory>
<Directory "/home/uakram/public_html/resources">
Options +Includes
</Directory>
JkUnmount /*.php ajp13
JkUnmount /*.shtml ajp13
JkMount /* ajp13
<Location "/home/uakram/public_html/WEB-INF/">
AllowOverride None
deny from all
</Location>
</VirtualHost>


and server.xml entry is

<Host appBase="webapps" name="hub">
<Alias>www.hub.youpark.com</Alias>
<Alias>hub.youpark.com</Alias>
<Valve className="org.apache.catalina.valves.AccessLogVal ve" directory="logs"
prefix="access_log." suffix=".txt" pattern="common"/>
<Context path="" docBase="/home/uakram/public_html/isv" debug="0" crossContext="true"/>
</Host>
Feb 22 '07 #3
Motoma
3,237 Expert 2GB
This link seems to be the exact thing you are looking for.
Feb 22 '07 #4
This link seems to be the exact thing you are looking for.

Thankyou for all your help but we are done installing tomcat and apache. What we are currently doing is configuring multiple subdomains. If the request is served by apache i.e. php and html pages the subdomain works fine eg, if you see corp.youpark.com it works fine. When user browses through this site the address remains corp.youpark.com as this is mainly html. But if you browse through a subdomain that is served by tomcat such as hub.youpark.com the address changes to the main domain which is www.youpark.com .


Anxiously waiting for your reply.

Regards
Feb 23 '07 #5
Motoma
3,237 Expert 2GB
Thankyou for all your help but we are done installing tomcat and apache. What we are currently doing is configuring multiple subdomains. If the request is served by apache i.e. php and html pages the subdomain works fine eg, if you see corp.youpark.com it works fine. When user browses through this site the address remains corp.youpark.com as this is mainly html. But if you browse through a subdomain that is served by tomcat such as hub.youpark.com the address changes to the main domain which is www.youpark.com .


Anxiously waiting for your reply.

Regards
I understand that. The task of doing this is called setting up Virtual Hosts. Seeing that you configuration had JK declarations, I assumed that you were using mod_jk, and having never used Tomcat myself, I decided to refer you to a site claiming to be a tutorial on "Configuring Tomcat5 and Apache2 with VirtualHosts using mod_jk."
Did you go through all four pages of the tutorial? It seemed to delineate the Virtual Host process quite well.
Feb 23 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Subhodini Fernandes | last post by:
A very basic question about Tomcat 3.3.1 configuration - We have an application setup on Tomcat. Daily the service needs to be taken down for backup purpose for 1 hour and we need Tomcat to...
1
by: LilleSkutt | last post by:
I am trying to create and instantiate a class into a created domain, so that I can unload the domain and replace the class (assembly .dll) while the main application is running, but I can't get it to...
2
by: Leon | last post by:
Is it possible to allow my website user's to enter the site using a subdomain name such johndoe.mywebsite.com then a automated script in the Global.asax file within the Application_BeginRequest...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
2
by: Bruce Russell | last post by:
This may sound stupid but I can't rename the WebForm1.aspx in the solution explorer. The file is located in my local web server at C:\Inetpub\wwwroot\Lab3-VB-Starter\WebForm1.aspx Is there...
9
by: scorpion53061 | last post by:
I have a request of Microsoft and I hope they see this. I use Visual Studio 2005 Pro and WIN XP Pro with IIS 5.1 I have spent the better part of the last 2 weeks attempting to get my ASP.NET...
0
by: ak121234 | last post by:
Hello, I am trying to configure a website for apache tomcat / WIN2K . The site is visible on localhost. Now I need to set it up for visibility outside. I have a domain: eg....
0
by: demonhunter10 | last post by:
i would like to ask how will i configure dynamic sub domain in tomcat configuration side, i have seen how it is done in apache and i would like to link it to tomcat. can anyone show me how?
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.