0
votes
1answer
285 views

Wildcard vhost subdomains with 301 redirect

At the moment I create a .htaccess file which redirects non-existent sub domains to the root URL. E.g <VirtualHost *:80> ServerAdmin www@example.co.uk ServerName example.co.uk ...
1
vote
1answer
742 views

How to set default site for IP access on apache vhost environment?

I have a vhost environment on Debian Linux with Apache running. It runs fine but I couldn't figure out how to set up a default site for requests that go directly to the servers IP instead of a domain ...