Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have created a virtual sever as below for my site:
enter image description here

I've specified the folder and domain name:

enter image description here

And I created a master zone for the domain, and NS1 and NS2 has been set for the domain. everything seems good, but when I visit the domain I see the below page without some test files that I've put in the root(www directory):

enter image description here

<VirtualHost *>
DocumentRoot "/home/"
<Directory "/home/">
allow from all
Options +Indexes

What I'm doing' wrong?

share|improve this question
What kinds of files are you trying to serve? If it is .php files, you need to have PHP installed. What server software are you using? –  Christopher May 19 '12 at 9:29
PHP has been installed. I use web min @Christopher –  Alireza Hos May 19 '12 at 10:39
You need to give more symptoms other than 'it's not working.' For example, what code is behind the page you're requesting? Where is the file? Does it give an error? How are you trying to get to it (Local host, DNS, etc)? –  Christopher May 19 '12 at 10:51
As you see in the above pic: I have Index of and then cgi-bin directory no file is listed to run it! did you read the whole part of the question? I already said that it is in www directory and www directory is inside directory –  Alireza Hos May 19 '12 at 10:58
DocumentRoot should be /home/user/, not the www. The domain should route to the www. –  Denny Mueller May 19 '12 at 13:24

2 Answers 2

It was all OK, but the problem was that Bind server hadn't been started. I couldn't gain any success in webmin so I switched to Kloxo and now everything works like a charm.

share|improve this answer

Is that your real apache conf snippet (with instead of your real domain name)? If so, change the into the other domain name, restart apache and you should be set to go.

share|improve this answer
domain name is masked, my domain has been set here. –  Alireza Hos May 21 '12 at 8:51

Your Answer


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.