Share folders using Apache Tomcat

When it comes to accessing images, files and other media through internet, There are many solutions especially when using ORACLE  APEX.

But when using Oracle 10g it's bit hard, so I used  Apache Tomcat.

Steps to share folder and access it using http:// :

  1. Downlaod and install Java6 Update 20 from here: https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
  2. Download and install Apache Tomact from here: http://tomcat.apache.org/
    1. Remember well the PORT : 8080  or any other one
    2. Remember well the user: ADMIN
    3. Remember well the user Password: ******
  3. Suppose you have installed Apache Tomcat in the following path: C:\Program Files\Apache Software Foundation\ :
    1. Go to : C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\
    2. Edit web.xml   <param-name>listings</param-name> <param-value>false</param-value>
    3. Change false to true :
      <param-name>listings</param-name> <param-value>true</param-value>
  4. Go to : C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
    1. Remove all contents
    2. Place here all your folders, files to make it shareable
  5. Restart Apache Tomcat
  6. Open Browser and Go to  : http://127.0.0.1:8080/
  7. you're done
UPDATE : To share any folder without copying it to ROOT folder :
  1. Go to C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf
  2. Edit server.xml
  3. Add the following line :

<Context docBase="c:\insight_dsk" path="/images" reloadable="true" source="c:\insight_dsk"/> 
c:\insight_dsk : Folder you want to share it
images     : Alias appears on the web page

4. Restart Apache Tomcat

To Display folder files goto:   http://127.0.0.1:8080/images

No comments:

Post a Comment

Remove unused Layouts in Oracle Apex

 Tables used : APEX_XXXXXXX.WWV_FLOW_REPORT_LAYOUTS APEX_XXXXXXX.WWV_FLOW_SHARED_QUERIES use the following query to delete unused Layouts. ...