July 31, 2008

Change Default Localhost File in Linux

Hi friends,

Whenever you type localhost or in browser, you will be getting some default file.

If you would like to change the default file and wants to put your own desired file then follow this procedure.

  1. Login into Linux as root
  2. Open the terminal
  3. cd etc/httpd/conf
  4. You can see the httpd.conf for configuration of httpd
  5. Place your .html file in /var/www/html
  6. Change the file name as index.html
  7. cd /etc --Change the directory to /etc folder
  8. service httpd start -- For starting the service
  9. service httpd restart -- To restart the service
  10. Now you open the browser
  11. In address bar of the browser type http://localhost/
  12. Now you will get your own html as default localhost
For further queries/comments, please mail to psrdotcom@gmail.com
Post a Comment

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com