cancel
Showing results for 
Search instead for 
Did you mean: 

How to serve up static html in j2ee engine?

Former Member
0 Kudos

Is there an equivalent to apache's htdocs on the j2ee engine? I want to server up some static html files that will "never" change and would rather not create an application just for this. Ideally they should be accessible like: http://www.example.com/myfile.html.

Accepted Solutions (1)

Accepted Solutions (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi jcwusr

1.1 Creating the Place holder for web files.

- Locate the installation folder of CE Server eg., D:\usr

- Navigate to J2EE location of CE Server as follows eg., D:\usr\sap\IGI\J00\j2ee

- Create new folder named u201Cwebu201D as below in J2EE Memory Space.

- Copy the web file provided to this created location.

1.2 Create Alias for the place holder created in J2EE Memory space.

- Navigate to Administrator -> Go to http://<host name>:<Port Number>/nwa

- Click on Java HTTP Provider Configuration

- The HTTP Provider Configuration screen will be displayed as follows.

- Click on Add Alias as mentioned below.

- Key in the Alias name and the Respective path for the place holder created for the web files.

- Click on Save.

1.3 Testing the URL

- Type the url http://<HostName>:<Port Number>/web/<XXXXXXXXX>.web In the Internet Explorer.

- Will open the web file stored in the server.

BR, Siarhei

Former Member
0 Kudos

Hi Siarhei,

Thanks for your response. That was actually my first solution as well. Unfortunately, I have a somewhat unique requirement in that my HTML pages must return an HTTP response code of 200. Using an http alias will actually return a 302.

I was hoping there was a default area within the server that could simply serve up HTML files directly. Temporarily I have had to create an Enterprise application containing the HTML files and deployed the EAR file to the J2EE engine. This seems to working fine but it just seems like overkill for such a trivial requirement.

Thanks.

Answers (0)