Salve,
allora... testando in locale cakephp (che uso con successo sui server remoti) volevo fare due cosette..
in pratica ho apache configurato per avere come DocumentRoot la cartella /Users/utente/Sites del mio computer (osx, se può interessare)
per testare cake e per non avere problemi con il RewriteEngine suo (che non saprei modificare), ho approntanto un virtualhost di cui sotto riporto la configurazione:
e aggiungendo in /etc/hosts la seguente linea:codice:<VirtualHost *:80> ServerAdmin myname@myemail.ext ServerName testcake.localhost ServerAlias testcake.localhost ServerAlias testcake DocumentRoot "/Users/utente/Sites/test_cake/app/webroot" <Directory "/Users/utente/Sites/test_cake/app/webroot"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # Rewrites RewriteEngine On </VirtualHost>
solo che ora, anche http://localhost punta a cake, invece vorrei che soltanto testcake.localhost ci puntasse e che il localhost continuti a puntare alla DocumentRoot di apachecodice:127.0.0.1 testcake.localhost
Idee?

Rispondi quotando
