Welcome Guest, Not a member yet? Register   Sign In
Need Help with VirtualHost
#1

[eluser]altrano[/eluser]
Ok first sorry for my bad english.

i'm new to Codeigniter before i work many with symfony, but now i will try Codeigniter, ok
my problem is i have a directory in my /home folder Projects/ init i place the new project i do that so many many times without a problem but with codeigniter i becomes a 403 Forbidden error message.

Ok some infos

my Project is under /home/altrano/Projects/ci-test

in /etc/hosts i add this line:
Code:
127.0.0.7    ci-test.localhost

my httpd.conf:
Code:
<VirtualHost 127.0.0.7:80>
  ServerName ci-test.localhost
  DocumentRoot /home/altrano/Projects/ci-test
  <Directory /home/altrano/Projects/ci-test>
    AllowOverride All
    Allow from All

    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ index.php/$1 [L]
  </Directory>
</VirtualHost>

restart apache Go to ci-test.localhost

and see ([403 Forbidden][403]You don't have permission to access / on this server.[/b])

Why what i do wrong?? for all my other projects i do it the exactly same way and it works perfecty but why not Codeigniter??

To test i copy my project and put it directly to /var/www/ci-test

and with localhost/ci-test his works.

Oh men i need to access it with ci-test.localhost and the project root how i described above!!!

Any Help?? Please... Smile
#2

[eluser]WanWizard[/eluser]
The user that runs your webserver (depending on your distro apache, www-data, or something else) probably doesn't have access to files in /home/...
#3

[eluser]altrano[/eluser]
ok?!? and how can grant this permission to www-data ??




Theme © iAndrew 2016 - Forum software by © MyBB