martes, 18 de noviembre de 2008

CONFIGURACION DEL SERVIDOR WEB

CAPACITACION 18 DE NOVIEMBRE DE 2008


*C:\wamp\bin\apache\apache 2.2.8\httpd.conf se busca la linea Virtual hosts y se quita el comentario a
include conf\extra\httpd-vhosts.conf

Para cada proyecto nuevo hay que agregar a éste archivo un host virtual

*C:\wamp\bin\apache\apache 2.2.8\extra\http-vhosts.conf y adicionamos

<VirtualHost *:80>

ServerName blog

DocumentRoot "C:\wamp\www\blog\web"

DirectoryIndex index.php


Alias /sf C:\wamp\bin\php\php5.2.6\data\symfony\web\sf

<Directory "C:\wamp\bin\php\php5.2.6\data\symfony\web\sf">

AllowOverride All

Allow from All

</Directory>


<Directory "C:\wamp\www\blog\web">

AllowOverride All

Allow from All

</Directory>

</VirtualHost>



*Luego vamos a C:\WINDOWS\system32\drivers\etc\host y se agrega cada proyecto que se va a crear

127.0.0.1 blog


*Por ultimo se reinicia el Wamp para ver los cambios y se accede al proyecto http://blog/

No hay comentarios: