# Using index.cgi

**URL:** <https://forum.xojo.com/t/using-index-cgi/14938>\
**Category:** Web\
**Created:** [March 12, 2014, 10:21pm UTC](https://forum.xojo.com/t/using-index-cgi/14938 "2014-03-12T22:21:11Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![William\_LeVan](https://forum.xojo.com/user_avatar/forum.xojo.com/william_levan/32/14543_2.png) [@William\_LeVan](https://forum.xojo.com/u/William_LeVan)\
**Post date:** [March 14, 2014, 12:22am UTC](https://forum.xojo.com/t/using-index-cgi/14938/21 "2014-03-14T00:22:22Z")

</div>

Oh and I looked at the logs as suggested earlier. Look what we have here:

attempt to invoke directory as script

---

<div class="post-metadata">

**Author:** ![William\_LeVan](https://forum.xojo.com/user_avatar/forum.xojo.com/william_levan/32/14543_2.png) [@William\_LeVan](https://forum.xojo.com/u/William_LeVan)\
**Post date:** [March 14, 2014, 2:09am UTC](https://forum.xojo.com/t/using-index-cgi/14938/22 "2014-03-14T02:09:18Z")

</div>

I figured it out. I had to modify the .Conf file for my virtualhost.  
Find the lines that say ScripAlias and replace it with the ones in the code below. I had to do it twice because I have port 443 and 80. Now I want to figure out how to add it to vhost.conf because parallels plesk panel will change my last\_httpd.conf when it wants.

`Alias /cgi-bin/ /var/www/vhosts/mysite.com/httpdocs/cgi-bin/
<Directory /var/www/vhosts/mysite.com/httpdocs/cgi-bin/>
AddHandler cgi-script .cgi
Options ExecCGI
</Directory>`

Works like a champ now.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:07pm UTC](https://forum.xojo.com/t/using-index-cgi/14938/23 "2020-10-29T17:07:13Z")

</div>



[Previous page](https://forum.xojo.com/t/using-index-cgi/14938.md?page=1)
