+ Reply to Thread
Results 1 to 5 of 5

Thread: Subdomain...

Hybrid View

  1. #1
    Mad Scientist 2bittoys's Avatar
    Join Date
    Oct 2002
    Location
    Brooklyn, USA
    Posts
    19

    Question Subdomain...

    Hi:

    I've searched the forums for info on subdomains before posting...

    Here are my questions:
    (1)
    my domain is 2-bit-toys.com
    when I add a subdomain "aaa" for example...
    it shows up on the top of the subdomain cpanel page as
    "aaa_2-bit-toys.com"

    Is this normal?

    In Aletia's control panel I would just see "aaa" at the top.

    (2)I have www.aaa.com registered.
    How do I configure stuff so that if the user types www.aaa.com it will get redirected to the subdomain that I've defined at Jaguar?
    I think all I have to do is add the subdomain "aaa", right? I don't need to set any redirection, right?

    Thanks.
    -a little confused.
    ------------------------------------------
    -James
    www.2-bit-toys.com

  2. #2
    No, you have to submit a ticket, and tell them to change the DNS of whatever domain you have registered, and tell them which folder to point it to. That is part of my problem right now too, so don't expect them to get to that too quickly.

  3. #3
    Mad Scientist 2bittoys's Avatar
    Join Date
    Oct 2002
    Location
    Brooklyn, USA
    Posts
    19
    I currently have set up two subdomains
    aaa and bbb

    both directories have already been created...
    /home/me_blah/www/aaa
    /home/me_blah/www/bbb

    Masood had to do something so that www.aaa.com will actually point to the first folder and www.bbb.com will point to the second.

    This was really strange. After Masood did that, I pointed my browser at www.aaa.com and www.bbb.com and the browser just hung.

    I then tried this...
    I moved the directory aaa to aaa_old and the MANUALLY created a directory called aaa. I put an index.html in there...and it worked!!!

    I did the same thing with bbb.

    HOWEVER, just as a test, I used the cpanel to delete my aaa subdomain through the cpanl and then added it again. Now www.aaa.com does not point go to /home/me_blah/www/aaa.

    Does anyone know why deleting a subdomain and readding it nullifies what Masood did? What exactly did Masood do? Please feel free to be technical.

    Also, can you please tell me why I had to MANUALLY create a aaa directory to get subdomains to work? Why coudn't I have just used the aaa directory that was created by the cpanel?

    Thanks.

    ------------------------------------------
    -James
    www.2-bit-toys.com

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    5,954
    That sounds rather strange. I've never had a problem with the directories that cpanel creates for subdomains.

    In order to get www.aaa.com to point to a folder inside your main site, you do not need a subdomain. A subdomain refers would be something like aaa.maindomain.com. What Masood did was set up a pointed domain (or I guess we're calling them "multi-hosted domains" these days). Right now there is no way for clients to set these up on their own because they require modification to the apache conf files. What Masood did was edit the conf file to include a new virtual domain. When a request comes in, apache searches that file for the requested domain and finds the directory where the files for that domain exist. So, essentially, when a request for www.aaa.com comes in, apache looks for a record of it and sees that is should get files from /home/me_blah/public_html/aaa. For your main domain it does the same thing, but instead gets /home/me_blah/public_html as the base directory.

    Deleting the aaa directory doesn't cause the apache conf files to change, so I have no idea why doing that would break that domain. Check that you set the permissions correctly on the directory when you recreated it (they should be 755, drwxr-xr-x). That's about the only thing I can come up with that could be wrong. Are you getting some kind of error message?

    --Jason

    So, you run the websites for both the American Automobile Association (aaa.com) and the Better Business Bureau (bbb.com)? That's impressive...
    Last edited by jason; 11-03-2002 at 11:24 AM.
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  5. #5
    Mad Scientist 2bittoys's Avatar
    Join Date
    Oct 2002
    Location
    Brooklyn, USA
    Posts
    19
    Thanks for the info Jason.

    Just to test out your theory about apache files and cpanel files not interfering with each other...

    I used the cpanel to delete subdomain aaa (it's not triple A! )
    and when I point the browser to www.aaa.com it doesn't show the index.html file in /home/me_blah/www/aaa

    I've totally confused now.

    I'm afraid to do anything through the cpanel now...although it's great for certain things...i'm afraid that if I do something in the cpanel, and the cpanel screws up something, then I would have to wait a while for someone to respond to my support ticket. Arggggh. This is frustrating. Nothing is smooth here.

    Do you have any insights as to what might be happening? I checked the permissions of the directories and they're fine.

    Thanks.
    ------------------------------------------
    -James
    www.2-bit-toys.com

+ Reply to Thread

Bookmarks

Posting Permissions

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