File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serving static pages with Apache

 
jignesh soni
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed Apache on my desktop. I want to serve static content using this Apache server. Where do I place static web pages ? Do I put these pages in some directory in apache ? If yes, which directory ?

If I put the web pages in any directory in my desktop, how will the Apache map to these web pages, when request comes in for any of these files ?

thanks
 
ujjwal soni
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jignesh,

You need to create a directory in C:/jakarta-tomcat-4-1-24/webapps/ or locate tomcat under program files.

1) Create a directory for example. C:/jakarta-tomcat-4-1-24/webapps/Books
2) Create or copy paste your index.html file (you need atleast one index file in there)
3) restart tomcat
4) open internet explorer -> type http://localhost:8080/Books

tats it.....

Cheers!!!

Ujjwal B Soni

<baroda, gujarat, india>
<919998971048>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic