Linux Dedicated Server FAQ - APACHE

DOMAIN || USER ID || APACHE || NAMESERVER || SERVER
WEBMAIL || CONNECTIVITY || SSL || MISCELLANEOUS


I created a new domain and browser access resolves to a listing of all directories under /www/htdocs. What is wrong?
There are several possible causes for this problem. Since you have just created the domain, the most likely cause is that the domain has not yet loaded into the nameserver's cache. A domain must resolve on nslookup from your server before it will correctly resolve on browser access. Normally, it takes 4-to-8 hours from time of creation for DNS resolution to occur. If the domain in question does resolve on nslookup, from the commandline prompt, as root ('su -'), try:
httpd.restart

The domain should now resolve correctly. If it does not, you should contact
support for assistance.

How do I prevent Web access to a newly created domain, not yet resolving in the nameservers, from showing a listing of the directories of all domains on my server?
Place an index file in the DocumentRoot, /www/htdocs, of your server.

Does Apache on my server support Server Side Includes?
Yes. If you are having difficulty getting Server Side Includes (SSI's) to work, add the following directives to /www/htdocs/.htaccess, creating that file if it does not exist:

Options +Indexes +Includes +ExecCGI
AddType application/x-httpd-cgi .cgi .pl

TOP

Disclaimer || Terms & Conditions || Press Release || Payment || Employment || Contact

 © Copyright Worldindia.com. All rights reserved