Stop rediection on 404

right now if a site is offline then the request gets redirected to my site instead of just timing out or showing a 404. can i modify the behavior?

Hard to know with limited info.

what information do you need? the questions eems straightforward..let me know what else you need…

You cannot define specific behavior, like a 404, for a VirtualHost that doesn’t exist. That will always be served by whatever VirtualHost Apache thinks is the “default” (or best match, if you had multiple IP-based VirtualHosts or some other weird stuff going on).

If you want to define behavior, you need to have a VirtualHost for the domain, and configure it appropriately for what you want.

You could probably also make your “default” VirtualHost serve a 404 or a blank page for any hostname that isn’t the VirtualHost.

But, I’d recommend you delete the DNS records, if you don’t want anything served on one of your names. If you want a site to not exist, make it not exist.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.