Welcome Guest, Not a member yet? Register   Sign In
Ubuntu Codeigniter URL segements not working
#1

[eluser]chuckleberry13[/eluser]
I've just installed apache2 and php5 on ubuntu and things are working great except that I can't get the segmented URLs to work. If I enable the get string I can access different controllers and methods but I would rather not use the GET string. Anybody have any ideas?

This url works: http://127.0.0.2/fastconfig/index.php
This url works: http://127.0.0.2/fastconfig/index.php?c=...getClients (with GET enabled)
This url does not work:http://127.0.0.2/fastconfig/index.php/app/ (note app is the default controller).

I am not getting the Codeigniter 404 but rather the apache 404 page not found error. The apache error log says
Code:
[error] [client 127.0.0.2] File does not exist: /var/www/fastconfig/index.php/app
which means it thinks I am looking for another file / folder named "app" instead of index.php handling this request.


Here is my Virtual Hosts (/etc/apache2/sites-available/default)

Code:
<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride FileInfo
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride FileInfo
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Any help would be appreciated.


Messages In This Thread
Ubuntu Codeigniter URL segements not working - by El Forum - 01-18-2011, 12:14 PM
Ubuntu Codeigniter URL segements not working - by El Forum - 01-18-2011, 04:48 PM
Ubuntu Codeigniter URL segements not working - by El Forum - 01-18-2011, 05:22 PM
Ubuntu Codeigniter URL segements not working - by El Forum - 01-28-2011, 07:19 PM
Ubuntu Codeigniter URL segements not working - by El Forum - 01-28-2011, 07:33 PM
Ubuntu Codeigniter URL segements not working - by El Forum - 01-30-2011, 04:33 AM
Ubuntu Codeigniter URL segements not working - by El Forum - 01-30-2011, 10:08 PM
Ubuntu Codeigniter URL segements not working - by El Forum - 02-05-2011, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB