2010-02-24 10 views
5

Quindi, mi chiedevo se qualcuno potesse chiarire in seguito e forse suggerire come potrei affrontare questo.problemi di cakephp e httpd.conf su Windows Apache Server (wamp)

dispiaciuto per la colorazione strana del codice

Mi spiego il set up prima. Ho installato il server di wamp e si trova fisicamente su un hd e quindi i miei file di sviluppo si trovano su un hd separato. Così ho aggiunto alias per accedere alla cartella specifica dev

in httpd.conf ho seguito

ServerRoot D:/Program Files/wamp/bin/apache/apache2.2.11 
Listen 80 
ServerName localhost:80 
DocumentRoot D:/Program Files/wamp/www 
<Directory /> 
    Options FollowSymLinks 
    AllowOverride None 
    Order deny,allow 
    Deny from all 
</Directory> 
<Directory D:/Program Files/wamp/www/> 
    Options Indexes FollowSymLinks 
    AllowOverride all 
    Order Allow,Deny 
    Allow from all 
</Directory> 

seguente è nel file di configurazione separato e incluso nel httpd.conf

Alias /project_birthday_planner "E:/Development/--- Projects-Full/PROJECT - BirthdayPlanner/trunk/" 
<Directory E:/Development/--- Projects-Full/PROJECT - BirthdayPlanner/trunk/> 
    Options Indexes FollowSymlinks MultiViews 
    AllowOverride All 
    Order allow,deny 
    Allow from all 
</Directory> 

nel mio E:/Sviluppo/--- Progetti-Completo/PROGETTO - BirthdayPlanner/trunk/ Ho i miei elenchi e file cakephp

qui è il problema

il mio modo di riscrittura è acceso ed i miei file .htaccess per le seguenti cartelle CakePHP sono i seguenti,

radice del cakephp

<IfModule mod_rewrite.c> 
    RewriteEngine on 
    RewriteBase/ 
    RewriteRule ^$ /app/webroot/ [L] 
    RewriteRule (.*) /app/webroot/$1 [L] 
</IfModule> 

* \ app *

<IfModule mod_rewrite.c> 
    RewriteEngine on 
    RewriteBase/ 
    RewriteRule ^$ /webroot/ [L] 
    RewriteRule (.*) /webroot/$1 [L] 
</IfModule> 

* \ app \ webroot *

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase/ 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] 
</IfModule> 

quando accedo /project_birthday_planner ottengo l'errore seguente 404 Not Found

**Not Found** 
The requested URL /app/webroot/ was not found on this server. 

se ho impostato DocumentRoot alla mia cartella cakephp oppure sposta le cartelle ei file di cakephp nella cartella DocucumentRoot iniziale, tutto si attiva e funziona.

domanda è come faccio a far fronte a questo problema, è questo qualcosa che viene intrinsecamente con l'uso di Apache Alias ​​ o mi sto perdendo qualche pezzo

questo dovrebbe istituire essere affrontato tramite VirtualHost allora?

grazie mille in anticipo

+0

è questo problema basato su Windows? – GnrlBzik

risposta

5

Dovete puntare il RewriteBase sulla retta via ... vedi here

+1

Grazie mille Dark, tu sei il più grande:) – GnrlBzik

Problemi correlati