on 08-16-2005 2:57 AM
Can somebody share their experience of serving static resources lke mpg, avi, swf, pdf, gif resources? how do I configure a static folder within my application context to render all these different resources rather than dropping all these files in the JCOO deployment folder?
Please share your experience.
Thanks
Hi,
I've found a little method and it work fine.
Don't forget to reward points
<u>The method is:</u>
Create an HTTP aliases in the J2EE AS JAVA.
1. Create a folder where you want to put your static files :
ex: c:/folder1
put your index.html file and other ressources
2. Create an aliases in the http provider
Go to Visual Admin Tool.
Go to your server node -> services -> HTTP PROVIDER
In Virtual Host tab
click on default
then on the right, go to Aliases tab
in field Alias put the name you want: ex=test
in field path put the path you have created: ex=c:/folder1
click on Add button
click on save properties
Don't forget to clear cash, some time you have to restart the server.
Go to :
http://<your host>:<your port>/test
It's working !
I hope it can help a lot of people.
Don't forget to reward points
Thanks
Regards
Gregory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.