Welcome Guest, Not a member yet? Register   Sign In
Code Igniter blocking access to /cgi-bin
#17

[eluser]Techie-Micheal[/eluser]
Okay, I setup a quick environment on my local machine, but it is running Windows.

So, here's what the directory structure looks like.

Code:
vhosts/local.michealcottingham.com/
- logs/
- www/
   - <public content>
- ci/
   - <the ci system dir>
   - <the ci application dir>
- cgi-bin/
   - <perl/etc. files>

Simple enough.

Here's my relevant Apache config:

Code:
# local.michealcottingham.com
<VirtualHost 127.0.0.1:80>
    ServerAdmin [email protected]
    DocumentRoot C:/xampp/vhosts/local.michealcottingham.com/www/
    ServerName local.michealcottingham.com
    ServerAlias local.michealcottingham.com www.local.michealcottingham.com
    ErrorLog C:/xampp/vhosts/local.michealcottingham.com/logs/error.log
    CustomLog C:/xampp/vhosts/local.michealcottingham.com/logs/access.log combined

    <Directory "C:/xampp/vhosts/local.michealcottingham.com/cgi-bin">
        AllowOverride None
        Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Here's my .htaccess file:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !/community
RewriteCond %{REQUEST_URI} !/templates
RewriteCond %{REQUEST_URI} !/blaze

RewriteRule ^(.*)$ index.php/$1 [L]

And cgi-bin works. o_O


Messages In This Thread
Code Igniter blocking access to /cgi-bin - by El Forum - 03-09-2008, 10:29 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 12:01 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 12:38 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 08:45 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 09:09 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 09:16 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 01:16 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 02:50 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 10:27 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 08:11 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 11:38 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 11:56 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 07:44 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 08:15 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 06:16 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 08:15 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 08:54 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 09:11 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 09:27 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-23-2008, 06:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB