Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 10-15-2007, 05:27 PM
questions questions is offline
Hatchling Croc
 
Join Date: Oct 2006
Posts: 9
Default How can addon domain completely conceal all traces to primary domain?

I want my addon domain to act as a complete independent entity, revealing no traces to the primary account under any circumstance.

I have a primary domain "primary.com" registered with my Baby account.
I setup an addon domain "myaddon.com"

If there is an error in any .htaccess file for myaddon.com, it will show a 500 Internal Server Error, thus revealing my primary website. Is there anything I can do to stop this from happening and are there anymore cases in which my primary could be revealed? Thanks for your time and replies

PHP Code:
//root for primary.com
public_html

//root for myaddon.com
public_html/myaddon/

//Intentionally place an error in my htaccess file here
//will trigger 500 internal error and reveal primary address
public_html/myaddon/contact/.htaccess 

Quote:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@myaddon.primary.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Reply With Quote
  #2  
Old 10-15-2007, 05:29 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,556
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by questions View Post
If there is an error in any .htaccess file for myaddon.com, it will show a 500 Internal Server Error, thus revealing my primary website. Is there anything I can do to stop this from happening ...
Yes. Get a separate account for your 2nd domain.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 10-15-2007, 05:58 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by quietFinn View Post
Yes. Get a separate account for your 2nd domain.
Read my mind exactly. Or get a reseller account if you have a bunch that you're going to need to do this for.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #4  
Old 10-15-2007, 07:21 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: How can addon domain completely conceal all traces to primary domain?

Or avoid errors in your add-on pages.

This is one of those "one per cPanel" things.
Reply With Quote
  #5  
Old 10-15-2007, 07:39 PM
esl's Avatar
esl esl is offline
Emperor Croc
 
Join Date: Jan 2005
Location: Proud to be an American - USA
Posts: 2,230
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by gwyneth View Post
Or avoid errors in your add-on pages.
LOL.

That's a good answer.
__________________
Have a great day,
Evan
Reply With Quote
  #6  
Old 10-15-2007, 09:39 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by esl View Post
LOL.

That's a good answer.
quietFinn and Matt were probably too nice to mention it. But it is a foolproof solution for the problem at hand.
Reply With Quote
  #7  
Old 10-16-2007, 01:07 AM
questions questions is offline
Hatchling Croc
 
Join Date: Oct 2006
Posts: 9
Default Re: How can addon domain completely conceal all traces to primary domain?

thanks for all your help
May I ask what exactly happens when we addon a domain? Does that actually go in and make physical changes to a conf file on the server?
Reply With Quote
  #8  
Old 10-16-2007, 01:24 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: How can addon domain completely conceal all traces to primary domain?

Yes. A new directory is created in the public_html folder in the main domain's /home/username folder. Also, a few server-wide files are modified (like apache and bind files) and new DNS zones are added.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #9  
Old 10-16-2007, 06:31 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: How can addon domain completely conceal all traces to primary domain?

Wouldn't custom error pages help with not revealing the primary domain?
__________________
best regards,
George
Reply With Quote
  #10  
Old 10-16-2007, 11:43 AM
questions questions is offline
Hatchling Croc
 
Join Date: Oct 2006
Posts: 9
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by slapshotw View Post
Yes. A new directory is created in the public_html folder in the main domain's /home/username folder. Also, a few server-wide files are modified (like apache and bind files) and new DNS zones are added.
Maybe it's a cpanel flaw or a technique to encourage more account signups but it seems that it's effectively adding new <VirtualHosts> containers so it seems like the solution could be as simple as adding more directives within this container. ie: ServerAdmin, ServerName

Quote:
Originally Posted by gtgeorge View Post
Wouldn't custom error pages help with not revealing the primary domain?
Thanks, this is what I eventually resorted to, setup error pages from 400-417 and 500-505 in my htaccess file. I'm just wondering if the primary can be discovered thru another loophole. Say email headers?
Reply With Quote
  #11  
Old 10-16-2007, 12:57 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by questions View Post
Thanks, this is what I eventually resorted to, setup error pages from 400-417 and 500-505 in my htaccess file. I'm just wondering if the primary can be discovered thru another loophole. Say email headers?
Usually the addon domain can be accessed via maindomain.com/foldername by default, I believe. Might want to use .htaccess to prevent that. Email headers shouldn't reveal the account name but not sure where else this may be revealed.

One of the best ways would be to go with a reseller account with multiple domains in my opinion.
__________________
best regards,
George
Reply With Quote
  #12  
Old 10-16-2007, 05:51 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: How can addon domain completely conceal all traces to primary domain?

Quote:
Originally Posted by questions View Post
I'm just wondering if the primary can be discovered thru another loophole. Say email headers?
If you're this concerned, I really would spend the extra few dollars a month to get the second account. This will ease your fears.

And usually, any inspection of email headers will lead to the server's hostname, not your primary domain.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:03 AM.