Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing a new website on the Apache Server Unix Env

Status
Not open for further replies.

Farhan123

Programmer
Jul 17, 2000
6
PK
Hello Everyone,

I am trying to install a site on the apache http server, all my application code is placed on the ibm websphere (i.e. jsps,classes,servlets), apache http server is just recieving the request, which are all forwarded to the websphere, now the problem is that static resources (stylesheets,images,and index.html file [this index.html file redirects the call the servlet deployed on the websphere]) which are deployed on the apache http server are not being looked in the right directory, due to which the application is not being accesed through the url, there are already a site installed on this server and its working fine, i wanna have the new site working with the same hostname but with the different directory path in the url (so that means that i dont need to create a seperate virualhost, all i need to do is to create an alias in my opinion in the httpd.conf file and map it to the directory where application resources are placed but this is not working for me, as the site is not loading at all). Can anyone suggest as to what is going wrong or is there anything i am missing out, i have copied the entry which i have inserted in the httpd.conf file for the alias.

Alias /wle/ /opt/HTTPServer/htdocs/wle/

<Directory &quot;/opt/HTTPServer/htdocs/wle/&quot;>
Options Indexes MultiViews
AllowOverride None
# Controls who can get stuff from this server.
order allow,deny
allow from all
</Directory>

Thanks in advance.

Farhan.
 
Whoa... slow down speedy....

Is webshphere and apache physically on the same server?

The alias option would aliases a name according to you config snippet above you would have to goto
in order to access it. You also need to make sure the permissions of the wle directory have read capability for the owner/group of apache since apache is trying to read the directory.

What do you error/access logs show?

What do you mean by the &quot;site is not working at all&quot;?
 
No websphere and apache are located in different machines, with unix env.

As for the error and logs, when i tpye in the url 'http://[hostname]/[folder]' it displays a page with the location of the 'web' folder on the application server (i.e. websphere) written on it.

Actually when i type in the exact url of the servlet (in the application server) which is responsible to display the login page, the login page gets displayed but without the images and the style sheets which are deployed in the http server (i.e. apache server). But in ideal case when i type in the url it should look for the index.html file in my application folder in the apache httpserver, which gives a call to the login servlet. The index file is placed in the same folder where the images and stylesheets are placed as well.

Thanks in advance.

Farhan.
 
Hmm, Sounds a bit of a mix here, why not simplify things by using a ProxyPass in your apache config to pass the requests to the websphere server? This will also allow you to cache images on the apache server for faster delivery?

Basically it goes something like this: ..

<VirtualHost *>
ServerName myservername.com
ProxyRequests off
ProxyPass / ProxyPassReverse / ProxyVia On
</VirtualHost>

Though I've not tried it with an alias myservername.com/somdir/
but maybe its something like: ...

<VirtualHost *>
ServerName myservername.com
ProxyRequests off
ProxyPass /somedir/ ProxyPassReverse /somedir/ ProxyVia On
</VirtualHost>

Try it out, what you got to loose ?

Good luck anyway

Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top