rustyp Posted December 23, 2011 Report Share Posted December 23, 2011 How do I make the server stop listing all the files under www if you just call up http://localhost/ or your ip address if your on the web. How can I force it to send say home.html if someone just typed in http://localhost/ in the browser? Thanks Quote Link to comment Share on other sites More sharing options...
BobS Posted December 24, 2011 Report Share Posted December 24, 2011 The EASIEST way is to change home.html to index.html. Apache uses a list of file names to determine what file to start with, known as Directory Index Files list. If it doesn't find one on the list, it goes to the next action, which in The Uniform Server's configuration is to display the directory. Alternatively, you can add "home.html" to the Directory Index Files list. Finally, you can create a 301 redirect in the .htaccess file that sends a request for "index.html" to "home.html". In 8-Coral's Unicontroller panel, you can easily access the Directory Index Files list through the Server Configuration > Apache > Edit Basic Configuration sequence. Regards,BobS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.