Forum Moderators: phranque

Message Too Old, No Replies

How to direct all IP address traffic to one domain on Virtual Sever

         

adam3000

7:40 pm on Feb 6, 2012 (gmt 0)

10+ Year Member



How do you direct all IP address traffic to one domain on a Virtual Sever?

I need a dedicated IP address for a domain existing on a Virtual Server. The Virtual Server comes with one IP address already and I'd like to use this IP address for the domain.

Is this possible? And if so, how do I do this?

My set up: Linux Virtual Server on 1&1 hosting, comes with Plesk. Any ideas?

g1smd

11:34 pm on Feb 6, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Two lines of mod_rewrite code will do it.

A RewriteCond testing HTTP_HOST for the IP address and a RewriteRule to do the redirect.

adam3000

11:42 pm on Feb 6, 2012 (gmt 0)

10+ Year Member



I'm afraid I didn't explain it very well.

I have a Virtual Server ( [50.21.181.85...] ) that's running Plesk.

I want to use that IP Address as the Dedicated IP Address for my only account / domain ( clientdomain.com ) on the server.

Any ideas on how to do this?

g1smd

12:19 am on Feb 7, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That depends on what the word "use" means.

What does the user currently type into their browser address bar to access your site? What do want them to type in, in the future?