Skip to main content

apache rewrite on default ip

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! I can't think of a good solution that wouldn't cause some kind of issue for other accounts on the machine. Would there be a way to give that user a dedicated IP address? That way the content would be routed to the correct Apache vhost. With the current configuration, no matter how you do it, Apache isn't going to handle that type of IP rewrite, and just going to the main shared IP of the server will lead to the default page. You could change the default vhost to be this specific domain, but you may not want to make that type of adjustment for one client.
    0
  • jthmgm
    I might be able to get a dedicated IP for them. Though as you no doubt know with the IPv4 address space pretty much exhausted it's now much more difficult to get extra addresses assigned by most datacenters. Ours doesn't even quote a price for them currently and just says to contact support (which I'm doing now.) I was just hoping since it's a single known URL that it would be possible to capture it with a rewrite and avoid the hassles of getting an extra IP assigned.
    0
  • cPRex Jurassic Moderator
    What about a .htaccess in /var/www/vhosts? Although I can't say for sure what negative impacts that could have for other users that may be sharing the same IP, such as issues with future AutoSSL renewals.
    0
  • jthmgm
    Good news, the datacenter agreed that this is a legitimate need for an additional IP and assigned one. So I have the site running on it's own IP now and it looks like the situation is resolved. 5 years ago I would have gone with a dedicated IP without thinking about it...but since they've gotten harder to get I hadn't even thought of it as an option.
    0
  • cPRex Jurassic Moderator
    I'm glad to hear that ended up being a good option!
    0

Please sign in to leave a comment.