LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache root path reference "/" (https://www.linuxquestions.org/questions/linux-server-73/apache-root-path-reference-819564/)

markdibley 07-13-2010 06:31 AM

Apache root path reference "/"
 
Hi

I have a very quick question.

I have 2 machines A and B that are identical (supposedly).

I have a file /var/www/html/pca.jar

I have a page /var/www/cgi-bin/work/view.cgi

Only the following html works on machine A
<applet code="MainAppApplet.class" archive="/pca.jar" width="550" height="400" name="myApplet" MAYSCRIPT>

Only the following html works on machine B
<applet code="MainAppApplet.class" archive="../../pca.jar" width="550" height="400" name="myApplet" MAYSCRIPT>

Both httpd.conf files are the same except for

diff httpd_B.conf httpd_A.conf
68c68
< Timeout 300
---
> Timeout 120
74c74
< KeepAlive On
---
> KeepAlive Off
198a199
> LoadModule version_module modules/mod_version.so

I don't understand why one machine allows me to use "/" as root and the other doesn't. Could this be set elsewhere?

Thanks for your help

Mark

markdibley 07-13-2010 08:45 AM

Also,

I would like to have the jar file inside /var/www/cgi-bin/work/. However, the applet fails because apache tries to execute the jar file. Is there any way to have non-executing, but accessible files in a scriptaliased directory?

Thanks

Mark


All times are GMT -5. The time now is 03:49 PM.