<br><br><div><span class="gmail_quote">On 6/11/06, <b class="gmail_sendername">Tim</b> <<a href="mailto:ignored_mailbox@yahoo.com.au">ignored_mailbox@yahoo.com.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 2006-06-11 at 12:28 +0530, Ankush Grover wrote:<br>> I am trying to configure virtual host on apache 2.0.53 on FC3. The<br>> directory /usr/local/test this contains some cgi programs and it is<br>> owned by the user "apache". I want to make these programs accessible
<br>> through some other port for example through port number 12345<br>><br>> <VirtualHost *:12345><br>>     ServerAdmin <a href="mailto:admin@example.com">admin@example.com</a><br>>       Options +ExecCGI
<br>>       DocumentRoot /usr/local/test<br>>         ServerName <a href="http://192.168.1.10">192.168.1.10</a><br>>         ErrorLog logs/password-error_log<br>>         CustomLog logs/password-access_log common
<br>> </VirtualHost><br>><br>> Whenever I put this url in the browser<br>> <a href="http://192.168.1.10:12345/test/prg.cgi">http://192.168.1.10:12345/test/prg.cgi</a><br>><br>> I get the following error
<br>><br>> Firefox can't establish a connection to the server at <a href="http://192.168.1.10:12345">192.168.1.10:12345</a>.<br><br>Try it without the /test/ subdirectory.  By default, Apache sets up<br>a /cgi-bin/ that's applied to all hosts at their root level.
<br><br>Of course you can add extra cgi-bin directories, but you have to do that<br>yourself.  Look up "script alias" in the Apache manual, and read on from<br>there.<br><br>If you also have SELinux running, you'll have to contend with
<br>customising SELinux contexts to allow cgi-bin scripts to run from other<br>locations, too.  There's a FAQ about SELinux and Apache on the Fedora<br>website.<br><br>Alternatively, put the scripts in the place already allowed to run them,
<br>and use the ScriptAlias Apache directive to map the URI in the manner<br>that you want.  There doesn't have to be a direct co-relation between<br>URIs and file system structure.<br><br>--<br>(Currently running FC4, occasionally trying FC5.)
<br><br>Don't send private replies to my address, the mailbox is ignored.<br>I read messages from the public lists.<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a>
<br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>You need to access it like this, <span class="q"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.1.10:12345/test/prg.cgi" target="_blank">
http://192.168.1.10:12345/pri.cgi</a>, because your document root already points to the "test"</span>
folder. So either add a DirectoryIndex Directive pointing to the
pri.cgi (DirectoryIndex pri.cgi) or access it like the url I mentioned
above. If that doesn't help copy the last few lines of your log file "<span class="q">password-error_log" and forward them. That is where you will more than likely find your problem.</span><br clear="all"><br> -- 
<br>mB.