[HTTP SERVER] [WEB SERVER] [APACHE TOMCAT]
[RASPBERRY PI - DEVELOPER TOOLS]
Working on a software generating HTML pages makes it necessary to test these pages with a real web server.
I use Tomcat on my Raspberry Pi to test the pages on my Ipad.
You get Tomcat here, I currently use version 7.0.72 .
I have downloaded the tar.gz archive and unzipped it to /home/bin/tomcat
.
I don't want to run Tomcat as a service, but I want to have it started at boot-time, so I have added this line at the end of .bashrc
:
/home/pi/bin/tomcat/bin/startup.sh
FYI :
To access static HTML pages I have put these Context
lines at the end of the host
block :
...
<Context docBase="/home/pi" path="pi" />
<Context docBase="/mnt/usbstickext4/pi/gitrepo/piblog/outputHTML" path="/blog" />
</Host>
</Engine>
</Service>
</Server>
This enables Tomcat to serve my home on the Pi under /pi
and my built blog pages under /blog
This is an example URL for /pi
to read a log file located in the home folder :
http://10.0.0.51:8080/pi/pibashrc.log
and this is how I access the blog on the Pi :
http://10.0.0.51:8080/blog/index.html
The Blog
|
|
|
|
My Technical Blogs
|
|
|
|
|
|
|
|
|
|
|
|
Projects
|
|
|
|
Blogs Of Friends
|
|
|
|
|
|
CV/About
|
|
|