cancel
Showing results for 
Search instead for 
Did you mean: 

Serve static resources

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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