Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: apache config vhost ? |
|
Author |
|
yeniugo
Joined: 31 Mar 2018 Posts: 1 Location: china
|
Posted: Sat 31 Mar '18 17:17 Post subject: apache config vhost ? |
|
|
Code: | <VirtualHost _default_:443>
DocumentRoot "/var/www/a"
ServerName a.example.com
</VirtualHost>
<VirtualHost _default_:443>
DocumentRoot "/var/www/b"
ServerName b.example.com
</VirtualHost> |
but if their have other domains point to this vps,it always point to the site same as a.example.com,and what can i do? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 03 Apr '18 9:39 Post subject: |
|
|
The issue is "_default_"
you can have only one of it |
|
Back to top |
|
|
|
|
|
|