Skip to main content

Two domains point to the same location?

Comments

70 comments

  • Spork Schivago
    Also, not really a DNS question here, but I just noticed when I created her account, jess, I made it a reseller account, gave it a default package, just like my account. I set it so the account owned itself. But when I log in as her in whm.example.com or cpanel.example.com, there's hardly nothing there! whm.domain.com and cpanel.domain.com lists everything. Just not her's. Was I not supposed to make the account own itself if I wanted her to have the same control that I have with mine? Both in whm and cpanel? I was thinking for a possible solution to 2) in my first post, I could just edit the zone manually and somehow have it point to the other domain? So they both take ya to the same place....
    0
  • cPanelLauren
    Hi @Spork Schivago I'll try to answer your questions in order below, please let me know if I missed anything:
    ) Should the two new domains have their own ns1 and ns2 DNS entry?

    I can't really give you a definitive answer to this, it's more up to your preference. If you want them to have their own nameservers you can certainly create them. We have step by step instructions on how to do this in our documentation here: Park a Domain - Version 68 Documentation - cPanel Documentation
    Also, not really a DNS question here, but I just noticed when I created her account, jess, I made it a reseller account, gave it a default package, just like my account. I set it so the account owned itself. But when I log in as her in whm.example.com or cpanel.example.com, there's hardly nothing there! whm.domain.com and cpanel.domain.com lists everything. Just not her's. Was I not supposed to make the account own itself if I wanted her to have the same control that I have with mine? Both in whm and cpanel?

    For this you'd need to ensure that the package and its assigned featurelist have all the features you want available for the account added. Information on features and packages can be found here: Edit a Package - Version 68 Documentation - cPanel Documentation If your wife's account continues to experience an issue once all the features you want to be added are available in the featurelist that's assigned to the package her account has, can you add a screenshot of the cPanel UI? Thank you,
    0
  • Spork Schivago
    Hi @Spork Schivago I'll try to answer your questions in order below, please let me know if I missed anything: I can't really give you a definitive answer to this, it's more up to your preference. If you want them to have their own nameservers you can certainly create them. We have step by step instructions on how to do this in our documentation here: Park a Domain - Version 68 Documentation - cPanel Documentation For this you'd need to ensure that the package and its assigned featurelist have all the features you want available for the account added. Information on features and packages can be found here: Edit a Package - Version 68 Documentation - cPanel Documentation If your wife's account continues to experience an issue once all the features you want to be added are available in the featurelist that's assigned to the package her account has, can you add a screenshot of the cPanel UI? Thank you,

    Can I send you the screenshot privately, so people don't see the domain name? I should have added that her account and my account both have the same package, default, which has everything picked, minus one feature, which we don't use. Therefore, I think something is wrong there or I configured her account incorrectly. For the parked domain, that will allow me to create the domain in cPanel with no owner or assign it to her account? I'll go over the documents you sent me. I think it'd be best for the other two domains to have their own name servers. But then what happens with mail? Can I have it setup where mail appears to come from example.com and example.net (or one of the two) instead of domain.com ? Even though we're just running the one mail server on the physical VPS? So when I log into domain.com, I can still send mail and have it appear to come from domain.com, but when we log into example.com or example.net, we can send and receive mail from one of those two domains (probably the .net one)?
    0
  • cPanelLauren
    Hello,
    Can I send you the screenshot privately, so people don't see the domain name?

    I think the best way to do this is to just take the screenshot and then block out the domain name using a text editor. If you're using a program to take the screenshot, there's one called lightshot has that capability built into it.
    For the parked domain, that will allow me to create the domain in cPanel with no owner or assign it to her account? I'll go over the documents you sent me.

    The documentation should explain it but essentially the domain is added to your wife's account
    I think it'd be best for the other two domains to have their own name servers. But then what happens with mail? Can I have it setup where mail appears to come from mybusiness.com and mybusiness.net (or one of the two) instead of mypersonaldomain.com ?

    You will be able to send/receive mail from both domain names pending you park the second domain (meaning you can create email addresses for either) You can also give them each their own MX records so if you wanted mail for mybusiness.net to use the mybusiness.com MX record that would be fine just as long as their both pointing to the same IP address (which in this instance they are) Thank you,
    0
  • Spork Schivago
    The MX records will not be pointing to the VPS, I hope that won't be a problem, for the example domains. They'll be pointing to our CSP office portal, so we can login to Windows 10 Enterprise E3 as @example.net instead of @example.onmicrosoft.com. Instead of showing the default package and features that belong to it, because the feature list is so long, I will say I edit the default package list features and see ONLY
    • API Shell (for developers)
    Unticked, everything else is. So, if my wife's account uses the default package, and I use the default package, how come her don't have nearly the same features? Her's is extremely limited, whereas mine is extremely full. Is this because when I setup the account, I told the domain to own itself or whatever that option was? Thanks.
    0
  • cPanelLauren
    Hello, Can you include a screenshot of the cPanel UI as well? Both accounts should have the same features available. Thank you,
    0
  • Spork Schivago
    So I'm trying it again. I delete her account, along with the domain. The I recreate it. I select for Package->Choose a Package: Default. Then Reseller Settings -> Make the account a reseller (I check) Reseller Settings -> Make the account own itself (i.e., the user can modify the account) (I check) This should allow her to have the exact same settings that I have, correct? Afterwards, I even add her to the wheel group. Or should I not select some of the things for Reseller Settings? Is that where I'm going wrong?
    0
  • cPanelLauren
    You mentioned:
    how come her don't have nearly the same features?

    Did you make your wife's account a reseller? Unless it's a reseller it shouldn't be able to login to WHM at all. If you did make the account a reseller and you'd like for it to remain as so you need to add privileges at WHM>>Resellers>>Edit Reseller Nameservers and Privileges.
    0
  • Spork Schivago
    Hello, Can you include a screenshot of the cPanel UI as well? Both accounts should have the same features available. Thank you,

    Yes, I can do that. Let me finish making the account again. Do you also want the WHM screenshots for both accounts?
    0
  • Spork Schivago
    You mentioned: Did you make your wife's account a reseller? Unless it's a reseller it shouldn't be able to login to WHM at all. If you did make the account a reseller and you'd like for it to remain as so you need to add privileges at WHM>>Resellers>>Edit Reseller Nameservers and Privileges.

    Yes, I want her to have the exact same options I have, in WHM and in cPanel. So that's the problem then? I need to go to WHM->Resellers->Edit Reseller Nameservers and Privileges and then add a bunch of options for her?
    0
  • cPanelLauren
    Yes, her reseller account should have the same privileges as well. Please let me know if adding those doesn't resolve the issue.
    0
  • Spork Schivago
    That fixed it! Thank you!!!!!! Now I just gotta do the parked domain thing you talked about, and then setup the new nameservers, and see if it's possible to have multiple reverse DNS records per domain, even though they're on the same VPS. I don't think this is possible, and I'm worried this will flag mail as spam, I gotta see how this all works out. When I do a traceroute any of the domains, I'd like them to show the last hop as the domain I'm tracerouting, not just mypersonaldomain.com like they currently do. I don't think this is possible though. I think because I can only have one reverse DNS pointer record, then because each domain shares the same IP address, I'm stuck with them all using .domain.com, instead of .example.com and .example.net, respectively. Thanks for all the help!!! I think we finally got it.
    0
  • Spork Schivago
    Still some issues. I've successfully parked example.net on top of example.com, but when I go to visit example.com, I see the directory listing, which shows cgi-bin, etc. But when I go to example.net, I see a cPanel SORRY! If you are the owner of this website, please contact your hosting provider: webmaster@example.net It is possible you have reached this page because: IP address has changed, server is misconfigured, etc. They're definitely not showing the same thing. example.com shows / example.net shows /cgi-sys/defaultwebpage.cgi I made sure she has cgi-privilege checked when I setup example.com and her account....I verified it's still selected.
    0
  • cPanelLauren
    Hi @Spork Schivago I'm happy to hear that and let us know if you have any issues with the rest of the configuration. As far as rDNS goes it should ALWAYS resolve back to the hostname in this instance. I wouldn't recommend any other configuration unless you have multiple IP addresses.
    0
  • cPanelLauren
    Still some issues. I've successfully parked example.net on top of example.com, but when I go to visit example.com, I see the directory listing, which shows cgi-bin, etc. But when I go to example.net, I see a cPanel SORRY! If you are the owner of this website, please contact your hosting provider: webmaster@example.net It is possible you have reached this page because: IP address has changed, server is misconfigured, etc. They're definitely not showing the same thing. example.com shows / example.net shows /cgi-sys/defaultwebpage.cgi I made sure cgi-bin or whatever it was was checked when I setup mybusiness.com.....

    Both domains are pointed to the same location correct? If so will you add an index.php file in public_html that just says something like "Success!" And let us know if the issue persists once there are files present in the document root. If it does please let me know what you have for the following in the Aliases interface: Domain, domain root, redirects to Thank you,
    0
  • Spork Schivago
    @cPanelLauren I cannot even go to cpanel.example.com or cpanel.example.net, it shows a 500 internal server error for both, even in incognito mode. Same with whm.example.com and .net Should I try restarting the server?
    0
  • cPanelLauren
    Hi, Can you tell me the value for WHM>>Server Configuration>>Tweak Settings -> Proxy Subdomains, Proxy Subdomain creation and Proxy Subdomain override are? Thank you,
    0
  • Spork Schivago
    Restarting did not fix the interal 500 error when trying to go to cpanel or whm.example.com or example.net I now get the same error when trying to visit whm.mydomain.com. So I cannot check, but it is turned on, I use proxy subdomains. Now I get the 500 error when trying to visit whm or cpanel.mydomain.com in incognito mode. Well, now I can access whm and cpanel.mydomain.com. That seems to be working again, but still no for her domains.
    0
  • Spork Schivago
    Grrrr. It all seems to depend on the PC. On her laptop, I can access whm.mydomain.com, but in Linux, on my Desktop, 500 internal server error. She's using IPv6, I'm using IPv4. I betcha CSF is blocking me or some crap. Now I gotta find a way to get in and check the logs to see who's being blocked by what. Betcha that is the problem.
    0
  • cPanelLauren
    You may also want to ensure they were created for her account when you recreated it. You can ensure her accounts has them pretty easily via CLI by running: /scripts/proxydomains --user=$username add
    You could also be running into caching and may want to clear your browser's cache. I also wanted to point out you can ALWAYS get to your cPanel/WHM interfaces by using the following methods: Thank you,
    0
  • Spork Schivago
    You may also want to ensure they were created for her account when you recreated it. You can ensure her accounts has them pretty easily via CLI by running: /scripts/proxydomains --user=$username add
    You could also be running into caching and may want to clear your browser's cache. I also wanted to point out you can ALWAYS get to your cPanel/WHM interfaces by using the following methods: Thank you,

    CSF was definitely blocking the IPv4 address. For caching problems, right now, my server is configured where it shouldn't cache web pages at all, but I still close Incognito mode, and then open a new window. Now that I've whitelisted my IP address, I don't get the 500 errors, which is great. But I create the index.php file, and example.net shows the index.php file, as expected, example.com shows this Example Domain is showing domain.com. I think this is because of the modrewrite rules I used, trying to direct all http traffic to https. I think I need to use a custom redirect somewheres, but not sure how.
    0
  • cPanelLauren
    In the redirections section of cPanel can you tell me what redirects you have there?
    0
  • Spork Schivago
    I checked the apache's httpd.conf and there's absolutely no entry for example.com, just one for example.net. Where are these parked domains stored? What config file? I've logged into cpanel.domain.com and looked at aliases, nothing setup. Then I looked into example.net's Aliases and I see: example.com Remove
    0
  • Spork Schivago
    Even after editing it and turning it on, it's still not redirecting.
    0
  • Spork Schivago
    Now, cpanel.example.com/.net show: example.com/cpsess8383634893/frontend/paper_lantern/filemanager/index.html?dir=/home/jess/public_html /public_html Example Domain Remove Manage Redirection But when I still try going to example.net, I get the misconfigured server error, and when I go to Example Domain, I domain.com, in Incognito mode. I'll try from my Linux box, see if it's a caching issue, even though my .htaccess should be preventing caching.
    0
  • cPanelLauren
    Hi, The parked domain would not have a VirtualHost of its own, instead it would be a ServerAlias and should be listed in that portion of the main domains VirtualHost Can you show what's in the .htaccess for the account?
    0
  • Spork Schivago
    Even on the Linux box, it's still redirecting me to domain.com, which has no aliases setup. So, both example.com and example.net have aliases setup that show example.com should be redirected to Example Domain. http and https example.net works as expected. It's just the .com isn't working right. Should I open a ticket at this point?
    0
  • cPanelLauren
    Hi, Please go ahead and open a ticket using the link in my signature. Once it's open please post the Ticket ID here so that we can update this thread with the outcome. Thank you,
    0
  • Spork Schivago
    Yes Ma'am. example.com isn't listed in httpd.conf at all. I checked with grep -i "example.com" httpd.conf It only shows up in that httpd.conf,v file, whatever that is. Here's what her .htaccess looks like: # Tell the browser to check for index.html and index.php, in that order. # if either exist, load that file by default. DirectoryIndex index.php index.html # Turn off caching for Google Chrome. Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate, post-check=0, pre-check=0" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" # Add P3P Privacy Headers to the site (this causes infinite redirects for some reason). # Header set P3P "policyref="/w3c/p3p.xml"" # Turn RewriteMod on. RewriteEngine On # Allow .well-known through for Comodo. RewriteCond %{REQUEST_URI} !^/\.well\-known/pki-validation/ # Redirect all other users to the https version of our website, # because we have SSL certs now. # RewriteCond %{HTTPS} !=on # RewriteRule ^/?(.*) https://%{REMOTE_HOST}/$1 [R=301,L] # php -- BEGIN cPanel-generated handler, do not edit # NOTE this account's php is controlled via FPM and the vhost, this is a place holder. # Do not edit. This next line is to support the cPanel php wrapper (php_cli). # AddType application/x-httpd-ea-php71 .php .phtml # php -- END cPanel-generated handler, do not edit RewriteCond %{HTTP_HOST} ^example\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^/?$ "https\:\/\/example\.net" [R=301,L]
    So, for whatever reason, the ServerAlias was never added to httpd.conf, and I think this is why it's defaulting to the global docroot.
    0
  • cPanelLauren
    Yes, I think you're right can you check /var/cpanel/userdata/$user/main to see if it's listed in as a parked domain? If it is (it should be) can you run the following: /scripts/updateuserdomains /scripts/updateuserdatacache --force mv /etc/apache2/conf/httpd.conf{,.bak} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
    And let me know if the issue persists?
    0

Please sign in to leave a comment.