Hi friends,
Whenever you type localhost or 127.0.0.1 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.
Whenever you type localhost or 127.0.0.1 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.
- Login into Linux as root
- Open the terminal
- cd etc/httpd/conf
- You can see the httpd.conf for configuration of httpd
- Place your .html file in /var/www/html
- Change the file name as index.html
- cd /etc --Change the directory to /etc folder
- service httpd start -- For starting the service
- service httpd restart -- To restart the service
- Now you open the browser
- In address bar of the browser type http://localhost/
- Now you will get your own html as default localhost
No comments:
Post a Comment