setting a default apache virtual host -


Is there a better way than setting up the default appetizer virtual host, it only chooses the first configuration?

I have servers with multiple domains, some of which are only configured with httpd, but separating the default virtual host is for example aaa.com where i actually know it mmm.com Would like to default on instead?

Something like parking domain without having to go through the hassle of setting up a configuration for each one - so can I serve a "content this domain has not been created yet" page?

Cheers

You can create a default virtual host and assign it to 000-default so that it is loaded and used before any verbosity that matches the requested domain is not available here bare-bones 000-default :

  & lt; VirtualHost *: 80 & gt; DocumentRoot / var / www & lt; Directory / var / www & gt; AllowOverride Allow all orders, Deny from all & lt; / Directory & gt; & Lt; / VirtualHost & gt;  

Then you can set up a PHP file under / var / www to create a domain parking page (this is a very easy example):

   

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -