• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache / Resin Subdirectories not working

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Warning: This is my first Resin Experience, before always worked with Tomcat.

I have a server with Resin 2.1.4 integrated with Apache. It is running a Java Servlet application. The application works just fine. What I thought I could do, was add a subdirectory to the application�s root directory and start adding in .jsp and .html files and they would just be accessible. So say the app root is /home/httpd/htdocs and I add a directory /home/httpd/htdocs/new that I could type in the URL with that subdirectory in it and it would work. So taking the example, the app is now at http://www.mydomain.com/index.jsp that I could access my new files at http://www.mydomain.com/new/index.jsp .

However that is not the case� what do I have to do to either Apache or Resin to get this new subdirectory to work? Thanks!

Note: restarting Apache and Resin didn�t make a difference�

All the directory, including the ones that work, all have the same owner/group.
In the log all I get is a 404 message:
cafwp.mydomain.com - - [26/May/2004:12:19:06 -0400] "GET /new/index.jsp HTTP/1.0" 404 1016 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"

Google is not helping and the resin list is slow...

Ross
 
Ross Rankin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, it's not the subdirectories it's jsp's... still a problem... here's the big picture...

I have a complex environment and I need to make changes. Here�s what it does:

11 different domains all doing a redirect to a single application, it�s configured in the httpd.conf like this:

<VirtualHost xx.xxx.xxx.143>

ServerAdmin root@localhost

DocumentRoot /home/httpd/htdocs

ServerName www.mydomain1.com

<Directory /home/httpd/htdocs/WEB-INF>

Order allow,deny

Deny from all

</Directory>

RewriteEngine on

RewriteRule ^/$ http://www.maindomain.com/arw/index.jsp?id=1234

</VirtualHost>

So the id piece is different for each of the 11 domains, each handled by the application loading a different page. Now, we want to have a second copy of the application running against a different database instance, on another domain. So the directory structure is like this:

/home/httpd/htdocs/
/home/httpd/htdocs2/

How do I add the VirtualHost in httpd.conf for this new app, other than changing the server name, document root, and removing the rewrites.

Then how do I change my resin.conf to handle this? Right now, the main app config is just between two <web-app> tags� I tried <host id=www.maindomain.com> and <host id=www.newdomain.com> but resin just restarting itself, never coming up.


Thanks,

Ross
 
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic