----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It has a search feature and all the answers!
----------------------------------------------------

The problem I am having is that I have my web server set up correctly using Stronghold 
2.4.2 and Apache JServ 1.0, and I have a virtualhost that works on a DIFFERENT PORT 
with a different domain name - but they reference the same IP address.

The problem is similar to the one posted on the FAQ:
http://java.apache.org/faq/fom-serve/cache/129.html
But in my case my virtual host is on a different port, so I think that is what is 
causing the problem.  I have checked the FAQ and the mailing list archives and I can't 
find references to such a problem anywhere.

I had two zones set up (web, dev) and when I accessed them as 
http://web.server.com/servlets/web or http://web.server.com/servlets/dev it worked 
fine [assume web and dev to be two separate zones]

But when I tried to mount them such that a call to http://web.server.com/servlets 
would point to zone web and http://dev.server.com:8080/servlets (notice the 8080, 
that's the other port) would point to zone dev

I did that as follows: (the bottom portion of my {ServerRoot}/httpd.conf file)
------------------------------------------------------------------------
# JServ Configuration for web.server.com
ApJServMount /servlets /web
<Location /servlets>
        order allow,deny
        allow from all
</Location>

listen 8080

<VirtualHost dev.server.com:8080>
ServerName dev.server.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/web/htdocs

ScriptAlias /cgi-bin/ /usr/local/web/cgi-bin/
ErrorLog /usr/local/web/logs/error_log
TransferLog /usr/local/web/logs/access_log
Alias /icons/ /usr/local/web/icons/

<Directory /usr/local/web/cgi-bin>
AllowOverride None
Options None
</Directory>



# JServ Configuration for dev.server.com:8080
ApJServMount /servlets /lawdev
<Location /servlets>
        order allow,deny
        allow from all
</Location>



</VirtualHost>



Include /usr/local/jserv/conf/jserv.conf
------------------------------------------------------------------------



jserv.conf has no zone mounting declarations, and jserv.properties correctly lists and 
points to zone property files
web.properties and dev.properties correctly point to the directories
I don't think it could be permissions, because it was working before, and when I 
copied directories over, I used 'cp -Rip' to maintain file permissions and ownership - 
that has led me to deduce that is has to do with the 'port 8080' which may cause 
problems with AUTHENTICATION

Right now security.authentication is false - does this need to be true?  And if so 
what else needs to be done to make it work?
Or is it because I declare the mount point for the whole server, and then declare the 
mount point for dev inside a virtual host tag - which could make it that the virtual 
host (dev site) has two declaration of ApJServMount /servlets /etc... ???  Do I need 
to separate the first ApJServMount directive via some sort of:
listen 80
<VirtualHost web.server.com>
ApJServMount /servlets /web
<Location /servlets>
        order allow,deny
        allow from all
</Location>
</VirtualHost>
???

When I browse to either:
http://web.server.com/servlets/example.Hello or
http://dev.server.com/servlets/example.Hello2 I get an "INTERNAL SERVER ERROR"

Somebody please help!  ANY help would be greatly appreciated.





Atul Ohri
NYU School of Law Webteam
[EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to