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/example.com/www"
ServerName example.com
<Directory "/home/example.com/www">
allow from all
Options +Indexes
ServerAlias www.example.com

What I'm doing' wrong?

  • 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? May 19 '12 at 9:29
  • PHP has been installed. I use web min @Christopher
    – Alireza
    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)? 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 mydomain.com directory
    – Alireza
    May 19 '12 at 10:58
  • DocumentRoot should be /home/user/, not the www. The domain should route to the www. May 19 '12 at 13:24

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.


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

  • domain name is masked, my domain has been set here.
    – Alireza
    May 21 '12 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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