Take the 2-minute tour ×
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/example.com/www"
ServerName example.com
<Directory "/home/example.com/www">
allow from all
Options +Indexes
</Directory>
ServerAlias www.example.com
</VirtualHost>

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 –  web designer 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 mydomain.com directory –  web designer 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

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.

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

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

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.