logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Any domain that isn't set up to rewrite to a given domain
Author
csdude55



Joined: 22 Jan 2023
Posts: 23
Location: USA, Wilkesboro

PostPosted: Fri 22 Dec '23 7:35    Post subject: Any domain that isn't set up to rewrite to a given domain Reply with quote

Is there a way to set up Apache so that any domain that is pointing to my server's IP (via A records) and is NOT set up on the server would automatically rewrite (invisible) to a given domain?

This is my server, and all of the sites on it are mine, so there's no security concern. Most of the domains are parked on top of a main domain, and it would be a lot easier to manage if I could modify Apache to have them all rewrite to that main domain instead of having to manually park them all.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7374
Location: Germany, Next to Hamburg

PostPosted: Wed 27 Dec '23 17:47    Post subject: Reply with quote

There is the default host as known as fetch all vhost [1]. However it doesn't make sence when using SSL, since the server sends a "wrong" certificate to the client. Most browsers don't connect to that unless you click the "ignore the danger" button.



[1] Example
Code:

<VirtualHost _default_:80>
# ...
</VirtualHost>
Back to top
csdude55



Joined: 22 Jan 2023
Posts: 23
Location: USA, Wilkesboro

PostPosted: Wed 27 Dec '23 20:53    Post subject: Reply with quote

Ahh. Well that makes sense, but it kinda ruins my plans! LOL Thanks for the info
Back to top


Reply to topic   Topic: Any domain that isn't set up to rewrite to a given domain View previous topic :: View next topic
Post new topic   Forum Index -> Apache