• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serving static pages with Apache

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic