Switching to Hosted Server Linux

Fairlight fairlite at fairlite.com
Mon Apr 19 06:06:31 PDT 2010


Y'all catch dis heeyah? mtauber19 at comcast.net been jivin' 'bout like:
> I am switching an application that been running on Red Hat Linux ES5 to a
> hosted web server.
>
> The Document Root on Red Hat is :/var/www/html
>
> On the hosted server the Document Root is /home/filepro/public_html
>
> The Document Root is specified in a Virtual Host container in the
> httpd.conf file.
>
> When I run a script for instance:
>
> http://mdmappsllc.com/zmenuframe.html
>
> I get the following error.
>
> Could not open /var/www/html/xmarv00f.txt
>
> Somehow it is using the default Document Root of the Red Hat Server not
> the one that is specified for the Virtual Server.
>
> The Virtual Host is using Centos which is Red Hat recompiled.
>
> If someone has insight into this problem, I would appreciate it.

Look at your source for zmenuframe.html:

<!.. Author Marv Tauber>
<SCRIPT language=javascript>
function getHost()
{   var fphost=location.hostname
    document.myform.action="http://"+ fphost +"/cgi-bin/fpcgi/";
    document.myform.submit();
}
</script>
         <title></title>
</head>

<body onload="getHost()">

Your called URL results in a page that does an onLoad which immediately
POSTs to fpcgi at the server's main /cgi-bin/fpcgi location.

Define a ScriptAlias for the virtualhost.

Configure fpcgi to work from within that directory and to use the right
DocumentRoot.

Correct the JavaScript's action URL.

mark->.
-- 
Audio panton, cogito singularis,


More information about the Filepro-list mailing list