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

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] ?
 
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 ?
 
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/

?
 
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/

?
 
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
 
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.
 
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?
 
Boxbilling admin, said to me it's reverse ip, I don't know how to do this.
 
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
?
 
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.
 
Then a reverse IP has nothing to do with that. You should really try symlinks.
 
Back
Top