Apache as File Server

Apache as File Server

am 07.11.2009 16:18:08 von Nitin Gupta

------=_NextPart_000_00AA_01CA5FEB.A2355D40
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi All



In my application, I have a scenario in which user can upload various files.
I am persisting these files on the File System itself. I need to make a http
interface on these saved files. Can I make use of Apache web server to serve
these files from the file system over http protocol? If yes, then please
suggest a optimal configuration to make Apache a typical file server.



Rgds

n


------=_NextPart_000_00AA_01CA5FEB.A2355D40
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









Hi All



 



In my application, I have a scenario in which user =
can
upload various files. I am persisting these files on the File System =
itself. I
need to make a http interface on these saved files. Can I make use of =
Apache
web server to serve these files from the file system over http protocol? =
If
yes, then please suggest a optimal configuration to make Apache a =
typical file
server.



 



Rgds



n









------=_NextPart_000_00AA_01CA5FEB.A2355D40--

Re: Apache as File Server

am 07.11.2009 18:41:35 von aw

Nitin Gupta wrote:
> Hi All
>
>
>
> In my application, I have a scenario in which user can upload various files.
> I am persisting these files on the File System itself. I need to make a http
> interface on these saved files. Can I make use of Apache web server to serve
> these files from the file system over http protocol? If yes, then please
> suggest a optimal configuration to make Apache a typical file server.
>
Suggestion for an optimal configuration :
- read the documentation at httpd.apache.org
- install Apache as per the documentation
- call up the starting page as per the documentation
- use the documentation to find out where this page is located on disk
- make some judicious logical deduction to figure out the answer to your
question

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache as File Server

am 08.11.2009 00:55:36 von John Hicks

--------------070503040302030401030304
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Nitin Gupta wrote:
>
> Hi All
>
>
>
> In my application, I have a scenario in which user can upload various
> files. I am persisting these files on the File System itself. I need
> to make a http interface on these saved files.
>

> Can I make use of Apache web server to serve these files from the file
> system over http protocol?
>

Yes. That's the basic function of a web server!

> If yes, then please suggest a optimal configuration to make Apache a
> typical file server.
>
>
>
> Rgds
>
> n
>

The default configuration should work just fine.

In order to display directory listings (indexes) of the files, you'll
want to /avoid/ using the DirectoryIndex directive (which tells Apache
to display an HTML page such as index.html etc. instead of an an index).

Check out:
http://httpd.apache.org/docs/2.0/mod/core.html#options
http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
and http://httpd.apache.org/docs/2.0/mod/mod_dir.html

In its simplest configuration, Apache will display directory listings of
the files at and below the web root and allow users to navigate the
directories and download any file by right clicking on it.

Have fun!

John




--------------070503040302030401030304
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit







Nitin Gupta wrote:
cite="mid:00a901ca5fbd$887d2140$997763c0$@res@srishtitechnet .com"
type="cite">





Hi All


 


In my application, I have a scenario in which
user can
upload various files. I am persisting these files on the File System
itself. I
need to make a http interface on these saved files.






cite="mid:00a901ca5fbd$887d2140$997763c0$@res@srishtitechnet .com"
type="cite">

Can I make use of Apache
web server to serve these files from the file system over http protocol?






Yes. That's the basic function of a web server!



cite="mid:00a901ca5fbd$887d2140$997763c0$@res@srishtitechnet .com"
type="cite">

If
yes, then please suggest a optimal configuration to make Apache a
typical file
server.


 


Rgds


n






The default configuration should work just fine.



In order to display directory listings (indexes) of the files, you'll
want to avoid using the DirectoryIndex directive (which tells
Apache to display an HTML page such as index.html etc. instead of an an
index).



Check out:





and



In its simplest configuration, Apache will display directory listings
of the files at and below the web root and allow users to navigate the
directories and download any file by right clicking on it.



Have fun!



John










--------------070503040302030401030304--

RE: Apache as File Server

am 09.11.2009 06:52:21 von Nitin Gupta

------=_NextPart_000_0082_01CA612E.EADECBA0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Thanks John,



My main app is running inside a Tomcat. My users will upload images, videos
etc on to the file system through my application running in Tomcat. I will
make use of a virtual host to directly point to these files through apache
web server. I will make use of this virtual host based URL of my files to
publish in the JSP pages.



Do let me know if my assumption and design scheme is fair enough.



Rgds

Nitin



From: John List [mailto:johnlist@gulfbridge.net]
Sent: Sunday, November 08, 2009 5:26 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache as File Server



Nitin Gupta wrote:

Hi All



In my application, I have a scenario in which user can upload various files.
I am persisting these files on the File System itself. I need to make a http
interface on these saved files.





Can I make use of Apache web server to serve these files from the file
system over http protocol?


Yes. That's the basic function of a web server!




If yes, then please suggest a optimal configuration to make Apache a typical
file server.



Rgds

n


The default configuration should work just fine.

In order to display directory listings (indexes) of the files, you'll want
to avoid using the DirectoryIndex directive (which tells Apache to display
an HTML page such as index.html etc. instead of an an index).

Check out:
http://httpd.apache.org/docs/2.0/mod/core.html#options
http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
and http://httpd.apache.org/docs/2.0/mod/mod_dir.html

In its simplest configuration, Apache will display directory listings of the
files at and below the web root and allow users to navigate the directories
and download any file by right clicking on it.

Have fun!

John





------=_NextPart_000_0082_01CA612E.EADECBA0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









Thanks =
John,



style=3D'color:#1F497D'> 



My main app is =
running inside a
Tomcat. My users will upload images, videos etc on to the file system =
through
my application running in Tomcat. I will make use of a virtual host to =
directly
point to these files through apache web server. I will make use of this =
virtual
host based URL of my files to publish in the JSP =
pages.



style=3D'color:#1F497D'> 



Do let me know if my =
assumption
and design scheme is fair enough.



style=3D'color:#1F497D'> 



style=3D'color:#1F497D'>Rgds



style=3D'color:#1F497D'>Nitin



style=3D'color:#1F497D'> 





0in 0in 0in'>

style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:
style=3D'font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> John List =
[mailto:johnlist@gulfbridge.net]


Sent: Sunday, November 08, 2009 5:26 AM

To: users@httpd.apache.org

Subject: Re: [users@httpd] Apache as File =
Server







 



Nitin Gupta wrote:



Hi All



 



In my application, I have a scenario in which user =
can
upload various files. I am persisting these files on the File System =
itself. I
need to make a http interface on these saved files.



New Roman","serif"'>





Can I make use of Apache web server to serve these =
files
from the file system over http protocol?



New Roman","serif"'>

Yes. That's the basic function of a web server!







If yes, then please suggest a optimal configuration =
to make
Apache a typical file server.



 



Rgds



n



style=3D'font-size:12.0pt;
font-family:"Times New Roman","serif"'>

The default configuration should work just fine.



In order to display directory listings (indexes) of the files, you'll =
want to avoid
using the DirectoryIndex directive (which tells Apache to display an =
HTML page
such as index.html etc. instead of an an index).



Check out:

href=3D"http://httpd.apache.org/docs/2.0/mod/core.html#optio ns">http://ht=
tpd.apache.org/docs/2.0/mod/core.html#options


href=3D"http://httpd.apache.org/docs/2.0/mod/mod_autoindex.h tml">http://h=
ttpd.apache.org/docs/2.0/mod/mod_autoindex.html


and href=3D"http://httpd.apache.org/docs/2.0/mod/mod_dir.html">h ttp://httpd.a=
pache.org/docs/2.0/mod/mod_dir.html




In its simplest configuration, Apache will display directory listings of =
the
files at and below the web root and allow users to navigate the =
directories and
download any file by right clicking on it.



Have fun!



John













------=_NextPart_000_0082_01CA612E.EADECBA0--

question about jk loadbalance

am 09.11.2009 08:33:45 von tgh

------=_NextPart_000_014A_01CA6152.068BACB0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hi

I setup a web, which has one apache, two jboss, and one mysql, and
use jk mod to make load balance between apache and jboss, it works

But , when I reboot one of jboss, it take about 60seconds to 70
seconds for the jk manager to take the status of rebooted jboss as ok, in
fact, jboss take about 10seconds to reboot, and I am confused about how to
set worker.properties file in apache conf directory, and server.xml file in
jboss



Could you help me



thanks










------=_NextPart_000_014A_01CA6152.068BACB0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









style=3D'font-size:10.5pt;color:#1F497D'>Hi



style=3D'font-size:10.5pt;color:#1F497D'>     &n=
bsp;   I
setup a web, which has one apache, two jboss, and one mysql, and use jk =
mod to
make load balance between apache and jboss, it =
works



style=3D'font-size:10.5pt;color:#1F497D'>     &n=
bsp;   But
, when I reboot one of jboss, it  take about 60seconds to 70 =
seconds for
the jk manager to take the status of rebooted jboss as ok, in fact, =
jboss take
about 10seconds to reboot, and  I am confused about how to set
worker.properties file in apache conf directory, and server.xml file in =
jboss



style=3D'font-size:10.5pt;color:#1F497D'> 



style=3D'font-size:10.5pt;color:#1F497D'>Could
you help me



style=3D'font-size:10.5pt;color:#1F497D'> 



style=3D'font-size:10.5pt;color:#1F497D'>thanks



style=3D'font-size:10.5pt;color:#1F497D'> 



style=3D'font-size:10.5pt;color:#1F497D'> 



style=3D'font-size:10.5pt;color:#1F497D'> 



style=3D'font-size:10.5pt;color:#1F497D'> 









------=_NextPart_000_014A_01CA6152.068BACB0--