cancel
Showing results for 
Search instead for 
Did you mean: 

WAS J2EE as an HTTP Server ?

diegohs
Active Participant
0 Kudos

Hi everyone,

Somebody knows if we can use was j2ee as an http server ?

I mean, I need to have a directory with some htm and image files (virtual directory).

Any clue ?

Thaaaaaanks and regards from Mexico,

Diego

Accepted Solutions (1)

Accepted Solutions (1)

former_member198228
Active Participant
0 Kudos

Hi Diego,

Yes you can use the WAS as an HTTP Server. In order to set it up open the visual administrator and open the HTTP Server service. On the right hand pane click on the alias tab and add an alias and the physical directory that alias points to. Restart the service and you are good to go

Hope that helps

Regards

Abdul

diegohs
Active Participant
0 Kudos

Hi Abdul / Victor,

Thanks a lot for your help...now, I can continue with my assignments. It works fine 😃

Regards !

Diego

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use virual host as a "virtual folder"

You should go to Admin Tool and open HTTP provider service, there you can configure all this. Here the documantation about this:

http://help.sap.com/saphelp_nw04/helpdata/en/0b/fbf5a47928f84e8d0beba8371508e6/content.htm

Here is how to use http alliases (taken from help.sap.com)

Defining HTTP Aliases on a Virtual Host

Use

You can use this procedure to set various HTTP aliases to directories with static web pages on the local file system.

Defining Aliases Using Visual Administrator

Use Visual Administrator tool to manage aliases on a virtual host. Open the Runtime screen of HTTP Service running on server. Next:

...

1. Choose the virtual host, for which you want to define alias, from the list

2. Choose Alias tab

3. Enter the name of the alias and the corresponding path to a directory on the local file system

4. Choose Add

The name of the alias and the directory path it points to must appear in a list on the screen. Make sure you choose Save Properties to permanently save your changes.

To remove an existing alias, select the alias name from the list of aliases and choose Remove.

Defining Aliases Using Telnet

You can use the HTTP_ALIAS command from the HTTP shell command group to define new and remove existing aliases with Telnet.

To define new alias enter the following on the command line in the server console:

...

1. Enter the name of the command (HTTP_ALIAS)

2. Specify the host, for which the alias is defined, using the –host parameter of the command

3. Enter the name of the alias

4. Enter the corresponding path

5. Press Enter

httpalias –host myhost myalias c:\somedir. This command defines an HTTP alias with name myalias that points to c:\somedir directory, on myhost host.

To remove an existing alias, use the command with the –remove option. For more information, see HTTP shell group.

Hope it helps.

Victor.

Message was edited by: Victor Shafran