Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently set up Virtualmin on a clean Debian7-32bit VPS. I decided to go with nginx instead of Apache.

Virtualmin sets up separate config files for each "virtual host", which I guess is fine. I have 3 domain names: Domain 1 is the main site (/home/joey), while Domain 2 and Domain 3 are subdirectories (/home/joey/s1 and /home/joey/s2). The document roots for each host are set up has such, however when I enter each domain in my web broswer I am brought to the main site. Basically, Domains 1, 2, and 3 all show the document root of Domain 1.

Is there something wrong with my configuration? Maybe I need something in my host records for each domain (on NameCheap)? This hadn't happened before I wiped my VPS and reinstalled Debian, when I was running apache.

share|improve this question
I have stopped using virtualmin long ago, but if you can paste me your nginx virtual hosts files I could help you fix them manually. –  Mohammad AbuShady Feb 11 '14 at 14:51

Your Answer


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

Browse other questions tagged or ask your own question.