Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Pennsylvania
    Posts
    14

    Question Configure apache to look in user directory

    I am new to setting up cpanel and just got my server the other day but here's my question.

    I have nameservers as:
    ns1.bear-servers.com
    ns2.bear-servers.com

    In cpanel how do I configure apache so that when I go to bear-servers.com or my main IP that they are shown my index page for bear-servers.com??

    Do I need to create an account in cpanel for this to work or what?

    The only comment I got from someone was:
    "You configure Apache (via cpanel) to look in user directory (this is just an example) /home/YOU/public_html for files when someone goes to www.yourdomain.com"

    I want it so that when a user goes to my IP or bear-servers.com they are seen our hosting index page.

    Thank any help is appreciated!

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    Create an account through WHM.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Pennsylvania
    Posts
    14

    Default

    You mean in Cpanel, where it allows you to "Create An Account"?

    Tracy

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Pennsylvania
    Posts
    14

    Default

    Ok I created an account but here's my question when I go to the ip: 65.75.172.42 it brings up a site that is hosted with me not the site I want to show which is: http://www.bear-servers.com.

    So my question is how do I point that IP to bear-servers.com?

    Tracy

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    go into httpd.conf and find the section that says:
    <VirtualHost 65.75.172.4>
    .......
    ServerName www.bear-servers.com
    ....
    </VirtualHost>


    Add the line:
    ServerAlias 65.75.172.4

    inside the VirtualHost

    #httpd restart

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    Pennsylvania
    Posts
    14

    Default

    I know this may sound stupid but how do I gain access to httpd.conf or where is this? Is this inside the cpanel?

    I am leasing this dedicated server and like I said I am new to this...

    Also, you said 65.75.172.4
    Did you mean to leave off the last number?

    65.75.172.40???

    Please advise and thank you so much for your help,
    Tracy

  7. #7
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    /usr/local/apache/conf/httpd.conf

    No, I didn't mean to leave off the last number. Should be your full ip

  8. #8
    Member
    Join Date
    Mar 2004
    Location
    Pennsylvania
    Posts
    14

    Default

    thanks but where is that? Can I access it via Cpanel? If so, where?

    Tracy

  9. #9
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    use ssh. Look for a beginner unix tutorials or maybe a book. If you're gonna be a sysadmin, you need to know unix, not just cPanel.

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 09-22-2010, 10:08 PM
  2. Apache install directory and user
    By nadeem1973 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-13-2008, 08:36 AM
  3. Replies: 4
    Last Post: 12-15-2007, 04:26 PM
  4. Create symbolic link from user directory to apache log
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-13-2004, 03:20 AM
  5. Store apache logs in user directory
    By KenMaier in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-03-2003, 05:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube