Results 1 to 8 of 8

Thread: Couple of questions

  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    59

    Default Couple of questions

    I have a couple of questions that I'm hoping you guys could help me out with. Bear with me as I'm somewhat a newbie to cPanel.

    1.) How do I set up a subdomain so that it doesn't change the url? For example, I have www.domain.com/subdir. I set up a subdomain of subdir.domain.com in cPanel, and when I go to it after the DNS resolves properly, it changes the url to www.domain.com/subdir. Is there an easy way to do this without the url changing?

    2.) I've been searching all over looking for a way to use a script that will allow my users to login to a portion of my site using their cPanel login and pass. I've checked and I know I need to match the encrypted password in /etc/shadow, but I can't figure out how to do the encryption properly so I can verify passwords. I would prefer to do this in PHP, if at all possible, but if it must be done in Perl, that's acceptable as well.

    Thanks in advance,
    Jay

  2. #2
    Member
    Join Date
    Dec 2003
    Posts
    59

    Default

    Hello?

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default Re: Couple of questions

    Originally posted by SeņorAmor
    1.) How do I set up a subdomain so that it doesn't change the url? For example, I have www.domain.com/subdir. I set up a subdomain of subdir.domain.com in cPanel, and when I go to it after the DNS resolves properly, it changes the url to www.domain.com/subdir. Is there an easy way to do this without the url changing?
    The URL should not change. If you setup a subdomain within cPanel such that http://www.example.org/news points to http://news.example.org , then people browsing to http://news.example.org/index.html should see the page located at /public_html/news/index.html. The URL should not change to http://www.example.org/news/index.html

    Try a generic subdomain (for example "testsub") and see if it works.

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    59

    Default

    Thanks for your reply. Am I correct in assuming I do not want to set up redirection?

  5. #5
    PbG
    PbG is offline
    Member PbG's Avatar
    Join Date
    Mar 2003
    Posts
    239

    Default

    If I'm understanding you correctly redirection should not be necessary . . .

  6. #6
    Member
    Join Date
    Dec 2003
    Posts
    59

    Default

    Ok. I figured there was a problem with the DNS so I removed and readded the subdomain. It now does not change the URL, however when I go to sub.domain.com, it takes me to plain old www.domain.com and not www.domain.com/sub.

    Ugh. Seriously, what am I doing wrong?

  7. #7
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Originally posted by SeņorAmor
    Am I correct in assuming I do not want to set up redirection?
    That is correct. You only need to use subdomains.

    I do not understand what DNS changes you made, but you do not ordinarily need access to BIND to setup a subdomain (an ordinary cpanel user can do it).

  8. #8
    Member
    Join Date
    Dec 2003
    Posts
    59

    Default

    Originally posted by SarcNBit
    That is correct. You only need to use subdomains.

    I do not understand what DNS changes you made, but you do not ordinarily need access to BIND to setup a subdomain (an ordinary cpanel user can do it).
    I meant I figured something didn't propogate properly so I removed and readded the subdomain.

    I think I figured out what my problem is. I have the subdomain setup for a secure part of my site (port 443). It would seem that http://sub.domain.com works but https://sub.comain.com does not.

    What would I need to do to make it work? I apologize for not thinking about this until now.

Similar Threads

  1. New user, couple of questions
    By Mik0392 in forum New User Questions
    Replies: 1
    Last Post: 04-17-2010, 09:50 AM
  2. A couple questions: i just need straight-up help thanks
    By ljrweb in forum New User Questions
    Replies: 0
    Last Post: 09-24-2008, 06:51 PM
  3. A Couple of Questions
    By Roxormcownage in forum New User Questions
    Replies: 1
    Last Post: 08-28-2006, 03:00 AM
  4. Couple of questions.. please help!!
    By rejectis in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-24-2004, 06:50 PM
  5. Couple of questions! Please help.
    By CooLMaN in forum Themes and Branding
    Replies: 1
    Last Post: 12-06-2003, 02:48 PM