problem with virtual host configuration on fc3

Matthew Benjamin msbenjamin12 at gmail.com
Sun Jun 11 13:02:06 UTC 2006


On 6/11/06, Tim <ignored_mailbox at yahoo.com.au> wrote:
>
> On Sun, 2006-06-11 at 12:28 +0530, Ankush Grover wrote:
> > I am trying to configure virtual host on apache 2.0.53 on FC3. The
> > directory /usr/local/test this contains some cgi programs and it is
> > owned by the user "apache". I want to make these programs accessible
> > through some other port for example through port number 12345
> >
> > <VirtualHost *:12345>
> >     ServerAdmin admin at example.com
> >       Options +ExecCGI
> >       DocumentRoot /usr/local/test
> >         ServerName 192.168.1.10
> >         ErrorLog logs/password-error_log
> >         CustomLog logs/password-access_log common
> > </VirtualHost>
> >
> > Whenever I put this url in the browser
> > http://192.168.1.10:12345/test/prg.cgi
> >
> > I get the following error
> >
> > Firefox can't establish a connection to the server at 192.168.1.10:12345
> .
>
> Try it without the /test/ subdirectory.  By default, Apache sets up
> a /cgi-bin/ that's applied to all hosts at their root level.
>
> Of course you can add extra cgi-bin directories, but you have to do that
> yourself.  Look up "script alias" in the Apache manual, and read on from
> there.
>
> If you also have SELinux running, you'll have to contend with
> customising SELinux contexts to allow cgi-bin scripts to run from other
> locations, too.  There's a FAQ about SELinux and Apache on the Fedora
> website.
>
> Alternatively, put the scripts in the place already allowed to run them,
> and use the ScriptAlias Apache directive to map the URI in the manner
> that you want.  There doesn't have to be a direct co-relation between
> URIs and file system structure.
>
> --
> (Currently running FC4, occasionally trying FC5.)
>
> Don't send private replies to my address, the mailbox is ignored.
> I read messages from the public lists.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

You need to access it like this,
http://192.168.1.10:12345/pri.cgi<http://192.168.1.10:12345/test/prg.cgi>,
because your document root already points to the "test" 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 "password-error_log" and forward
them. That is where you will more than likely find your problem.

 --
mB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060611/e2a4898f/attachment-0001.htm>


More information about the fedora-list mailing list