Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

please correct any of my statements if I'm wrong.

I've realized that VirtualHosts are loaded through httpd.conf line (exact path is individual)

Include conf/vhosts/*.conf

And each *.conf host is loaded in order given by filename

0default.conf
1site.conf
2site2.conf
...

Is this good way to handle which site will appear on (single and only) IP address?

I mean, if I go to my server IP (12.34.56.78), i will see VirtualHost defined by 0default.conf, is this right way how to do it?

Thanks

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

That's the way I do it, except I use a slightly different prefix which is better when you list the folder IMO:

000-defaultsite
001-firstsite
002-secondsite
etc...
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.