Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Location
    England
    Posts
    463

    changing ip website?

    Hello,

    I want to setup a page on my server with some information so when you visit my ip it shows this.

    at the moment it is showing some ramdom account and i have no idea why.

    how do i change it to display what i want.

    my ip is http://91.186.4.73 and i am using cpanel.

    dave.

  2. #2
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,352
    Appears like you are sharing the IP address for some other domains. To show a page while calling the IP, add the entry

    NameVirtualHost 91.186.4.73:80 above the virtualhost entries.

    Also, create a virtualhost entry like below:

    <VirtualHost 91.186.4.73>
    DocumentRoot /path/to/ur/documentroot
    </VirtualHost>

    Let us know how it goes
    Senior Server Administrator

  3. #3
    Join Date
    Jan 2006
    Location
    England
    Posts
    463
    thanks, i think it is using that account because it is the first in my account list.

    can i do this in the whm or do i need to look in the root files?

  4. #4
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,352
    thanks, i think it is using that account because it is the first in my account list.
    Exactly, that is why we need NameVirtualHost entry

    can i do this in the whm or do i need to look in the root files?
    Feel free to use the backend via ssh to edit the httpd.conf file.

    Let us know how it goes.
    Senior Server Administrator

  5. #5
    Join Date
    Jan 2006
    Location
    England
    Posts
    463
    fixed, thanks for all your help linuxcare.

    much appreciated

  6. #6
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,352
    Quote Originally Posted by daveredfern
    fixed, thanks for all your help linuxcare.

    much appreciated
    You are welcome

    Happy X'mas and Prosperous New Year!!!
    Senior Server Administrator

Posting Permissions

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