Page 2 of 2 FirstFirst 12
Results 21 to 34 of 34

Thread: How to point my VPS - server's IP to my main domain ?

  1. #21
    Join Date
    Apr 2012
    Posts
    142
    Code:
    How do I create a symbolic link?
    
    ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]
    
    For example:
    
    ln -s /usr/local/apache/logs ./logs
    This points a symbolic link "./logs" to "/usr/local/apache/logs"
    In my case, I want to display the same content in my server's IP and my selected domain.
    What directory should I use in [TARGET DIRECTORY OR FILE] ?

  2. #22
    Join Date
    Apr 2012
    Posts
    142
    Quote Originally Posted by zEitEr View Post
    I will try, Thanks !

  3. #23
    Join Date
    Apr 2012
    Posts
    142
    Quote Originally Posted by zEitEr View Post
    You could try to create a symlink /home/admin/domains/sharedip/ to /home/admin/domains/phcorner.me/public_html/

    Note, you might need to enable PHP for /home/admin/domains/shared/, I can't say it for sure now, as I've done nothing of this kind ever before.

    The first thing I do is going to:
    cd /home/admin/domains/sharedip/ ?
    Is that right or,
    cd /home/admin/domains/phcorner.me/public_html ?

  4. #24
    Join Date
    Apr 2012
    Posts
    142
    What is correct:

    ln -s /home/admin/domains/sharedip/ /home/admin/domains/phcorner.me/public_html

    or

    ln -s [TARGET DIRECTORY OR FILE/home/admin/domains/phcorner.me/public_html /home/admin/domains/sharedip/

    ?

  5. #25
    Join Date
    Apr 2012
    Posts
    142
    Edit:

    What is correct:

    ln -s /home/admin/domains/sharedip/ /home/admin/domains/phcorner.me/public_html

    or

    ln -s /home/admin/domains/phcorner.me/public_html /home/admin/domains/sharedip/

    ?

  6. #26
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    If to wait... I guess you'll find the solution. But you'd better:

    Code:
    cd /home/admin/domains/
    and work from there with relative paths
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  7. #27
    Join Date
    Apr 2012
    Posts
    142
    Here is an example:


    Host Name : boxbilling.com
    IP Address : 212.1.209.3

    The hostname and ip address display the same data.
    How to do this?

    Symlinks seems not working.

  8. #28
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    A default solution would be to use an assigned (owned) IP for a user account. Since you've got only one IP you could try to update Document Root in Apache config for the IP and protect it from being overwritten (not very good idea... but at least you could try).

    What is wrong with symlinks?

  9. #29
    Join Date
    Apr 2012
    Posts
    142
    Boxbilling admin, said to me it's reverse ip, I don't know how to do this.

  10. #30
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Sorry, what? What a reverse IP has to do with that?

  11. #31
    Join Date
    Apr 2012
    Posts
    142
    Quote Originally Posted by zEitEr View Post
    Sorry, what? What a reverse IP has to do with that?
    I'm asking boxbilling admin, on how did they do it.
    They said, "Google reverse IP"

  12. #32
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Don't you misleading us? What do you want: To access your website by IP? Or see your domain name when doing

    Code:
    nslookup 109.163.234.97
    ?
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  13. #33
    Join Date
    Apr 2012
    Posts
    142
    Quote Originally Posted by zEitEr View Post
    Don't you misleading us? What do you want: To access your website by IP? Or see your domain name when doing

    Code:
    nslookup 109.163.234.97
    ?
    All i want is this:


    Example:

    Domain : boxbilling.com
    and server IP Address : 212.1.209.3

    Display's the same data.

  14. #34
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Then a reverse IP has nothing to do with that. You should really try symlinks.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

Page 2 of 2 FirstFirst 12

Similar Threads

  1. How can I prevent other domain point to my server?
    By gzadam in forum DirectAdmin General Discussion
    Replies: 5
    Last Post: 05-11-2010, 09:16 PM
  2. Domain Not Point to server.
    By frednoob in forum DNS
    Replies: 3
    Last Post: 09-20-2008, 10:32 AM
  3. point all subdomains to main domain
    By mdbbe in forum User-Level Difficulties
    Replies: 8
    Last Post: 08-10-2008, 10:24 PM
  4. Mispelled domain name need new domain to point to server
    By darm2886 in forum User-Level Difficulties
    Replies: 2
    Last Post: 01-31-2007, 08:24 AM
  5. Server IP to point for specifik domain
    By jimbaud in forum Admin-Level Difficulties
    Replies: 3
    Last Post: 10-22-2005, 08:09 AM

Posting Permissions

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