Do you need to add your vhost to a hosts file for linux, like windows?


On 29 Nov 2009, at 21:34, Jigal sanders <jigalroe...@gmail.com> wrote:

this is what i have in my .htaccess file on the public directory

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

On Sun, Nov 29, 2009 at 10:32 PM, Bradley Holt <bradley.h...@foundline.com > wrote:
What do your rewrite rules look like?

On Sun, Nov 29, 2009 at 4:29 PM, Jigal sanders <jigalroe...@gmail.com> wrote:
> No I have this:
>
> <VirtualHost *:80>
>     ServerAdmin jigalroe...@gmail.com
>
>     DocumentRoot /var/www/nrka/public/
>     ServerName nrka
>     <Directory /var/www/nrka/public/>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride All
>         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 All
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
>
> </VirtualHost>
>
> but it still doesn't work. I have the idea that there is too much in this
> file.
>
> On Sun, Nov 29, 2009 at 10:25 PM, Sudheer Satyanarayana
> <sudhee...@sudheer.net> wrote:
>>
>> On Monday 30 November 2009 02:40 AM, Jigal sanders wrote:
>>>
>>> Well,
>>>
>>> my first problem is that it gets to my webroot but when I click on a >>> link, it doesn't follow my controller and action. I rather get an error:
>>>
>>> The requested URL /authentication/login was not found on this server.
>>>
>>> the whole structure is exactly coppied to my project on ubuntu.
>>>
>>> can it be something in my vhost config?
>>>
>>> <VirtualHost *:80>
>>> ServerAdmin jigalroe...@gmail.com <mailto:jigalroe...@gmail.com>
>>>
>>>    DocumentRoot /var/www/nrka/public/
>>>    ServerName nrka
>>> <Directory /var/www/nrka/public/>
>>>        Options Indexes FollowSymLinks MultiViews
>>>        AllowOverride None
>>
>> AllowOverride All.
>>>
>>>        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
>>
>> AllowOverride All.
>>
>> You have to allow the .htaccess files to override settings. Or just put up >> the rewrite rules in the <Virtualhost> section of Apache configuration.
>>
>> --
>>
>> With warm regards,
>> Sudheer. S
>> Tech stuff: http://techchorus.net
>> Business: http://binaryvibes.co.in
>>
>
>
>
> --
> Met vriendelijke groet,
>
> Jigal Sanders
> A.J. Ernststraat 739
> 1082 LK Amsterdam
> Mobiel: 06-42111489
>



--
Bradley Holt
bradley.h...@foundline.com



--
Met vriendelijke groet,

Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489

Reply via email to