Web Hosting in Raspberry Pi
Its easy to host web pages in your running Raspberry Pi.
1. Install Apache2
use the following link for the details - http://www.raspberrypi.org/documentation/remote-access/web-server/apache.md
sudo apt-get install apache2 -y
2.Once you install start the apache server
follow link - http://httpd.apache.org/docs/2.2/stopping.html
3. once you type your raspberrypi ip address in address bar in your computer , it will load the default of Apache. you can test apache installation that way.
In order to change default apache root directory ,edit file 'default' file in the directory below
/etc/apache2/sites-avaiable
edit the following and save the file.
Its easy to host web pages in your running Raspberry Pi.
1. Install Apache2
use the following link for the details - http://www.raspberrypi.org/documentation/remote-access/web-server/apache.md
sudo apt-get install apache2 -y
2.Once you install start the apache server
follow link - http://httpd.apache.org/docs/2.2/stopping.html
3. once you type your raspberrypi ip address in address bar in your computer , it will load the default of Apache. you can test apache installation that way.
In order to change default apache root directory ,edit file 'default' file in the directory below
/etc/apache2/sites-avaiable
edit the following and save the file.
DocumentRoot 'your project library'
You can browse the Raspberry project folder html, by giving pi ipaddress/first.html from your computer.
No comments:
Post a Comment