Results 1 to 10 of 10
  1. #1

    parking a domain.......

    Hello.

    I am just wondering something. I parked a domain called curbdiver.net ontop of curbdiver.com in WHM. I also installed JSP servlets on curbdiver.com. But when you go to www.curbdiver.com it displays fine, but www.curbdiver.net, and the IP for the site, gives tomcat 404 errors. Can anyone help PLEASE? Thanks!

  2. #2
    Join Date
    Apr 2001
    Location
    Depok, Indonesia
    Posts
    988
    Make sense. The web server probably uses name based virtual host and not configured to accept curbriver.net as a site.

  3. #3
    Join Date
    Mar 2002
    Location
    Servers
    Posts
    806
    Yes, you will need to add the JSP related stuff in .net domain as well. Open the httpd.conf file and see the difference between .com and .net virtual host entries.
    Dedicated Servers cPanel Shared/Reseller Hosting
    VPS Backups Cloud Colocation Managed Services
    Webx Networks Serving world wide since 1997

  4. #4
    Ok. Thanks for the replys! I don't really see how there would be any difference between the .net and the .com entry in httpd.conf. Especially since .net is just an alias right? Here is the virtualhost entry in my httpd.conf

    ------------------------------------
    #NameVirtualHost 204.246.138.2:80
    <VirtualHost 204.246.138.2>
    ServerAlias www.curbdiver.com curbdiver.com
    ServerAdmin [email protected]
    DocumentRoot /home/curbdive/public_html
    BytesLog domlogs/curbdiver.com-bytes_log
    ServerName www.curbdiver.com
    ScriptAlias /cgi-bin/ /home/curbdive/public_html/cgi-bin/
    ServerAlias curbdivers.com *.curbdivers.com
    ServerAlias curbdiver.net *.curbdiver.net
    CustomLog domlogs/curbdiver.com combined
    ScriptAlias /cgi-bin/ /home/curbdive/public_html/cgi-bin/

    <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13
    </IfModule>
    </VirtualHost>
    ------------------------------------------

    See anything? Maybe something I need to change?

    Thanks again!

  5. #5
    Join Date
    Mar 2002
    Location
    Servers
    Posts
    806
    O!

    Can you check the tomcat logs?
    Dedicated Servers cPanel Shared/Reseller Hosting
    VPS Backups Cloud Colocation Managed Services
    Webx Networks Serving world wide since 1997

  6. #6
    Maybe I'm reading the wrong log. But this is all that is in the accesslog for tomcat ( /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/logs/localhost_access_log.2002-08-03.txt )

    --------------------
    66.32.55.7 - - [03/Aug/2002:13:38:06 -0700] "GET /side.jsp HTTP/1.1" 404 600
    66.32.55.7 - - [03/Aug/2002:13:38:06 -0700] "GET /home.jsp HTTP/1.1" 404 600
    66.32.55.7 - - [03/Aug/2002:13:38:06 -0700] "GET /side.jsp HTTP/1.1" 404 600
    ---------------------

    Is there an error log somewhere I don't know of I should be looking in?

    Thanks for the help so much.

  7. #7
    Ok... I've figured it out myself finally. Took a bit. But I got it. Anyone that may be reading this thread, and want to know how I did this, well, listen up..

    Ok. It's pretty simple. All you need to do is navigate to the directory below (may be different if you have a different version of tomcat installed)
    /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf

    Once there, open up your server.xml file, and get ready to edit some lines.. They are near the bottom of the file. They look like
    <Host name="www.curbdiver.com">
    <Context path="" reloadable="true" docBase="/home/curbdive/public_html" debug="1"/>
    </Host>

    Well, I needed it to work with curbdiver.net and www.curbdiver.net - so I added the following:

    <Host name="curbdiver.net">
    <Context path="" reloadable="true" docBase="/home/curbdive/public_html" debug="1"/>
    </Host>
    <Host name="www.curbdiver.net">
    <Context path="" reloadable="true" docBase="/home/curbdive/public_html" debug="1"/>
    </Host>

    Restart tomcat, restart httpd - ta da. Your parked domains now work. I was over on the cpanel forums. And people seemed to have the similiar problem. May be a bug in whm/cpanel when a domain is parked, it isnt added to the tomcat server.xml file. I'm going to post the info to that board also..

    Hope this helps someone down the road..

  8. #8
    Join Date
    Mar 2002
    Location
    Servers
    Posts
    806
    Oh man! I just found it as well.

    Instead of pressing the reply button, I refreshed the thread and here you are with the solution

    Dedicated Servers cPanel Shared/Reseller Hosting
    VPS Backups Cloud Colocation Managed Services
    Webx Networks Serving world wide since 1997

  9. #9
    Well thanks anyway masood. You set me on the write path, looking for conf files

  10. #10
    Join Date
    Mar 2002
    Location
    Servers
    Posts
    806
    You are welcome

    Dedicated Servers cPanel Shared/Reseller Hosting
    VPS Backups Cloud Colocation Managed Services
    Webx Networks Serving world wide since 1997

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •