Instalar Apache en FreeBSD

~# pkg_add -r apache22

-El directorio donde podemos hacer que nuestra web sea publica esta en:
/usr/local/www/data

-Se pueden hacer miles de ajustes en este programa modificando el archivo httpd.conf que se encuentra en:
/usr/local/etc/apache/httpd.conf
------------------------------------

reiniciar apache:
~#apachetcl restart

configurar apache:
~#vi /usr/local/etc/apache22/httpd.conf
linea... DocumentRoot "/usr/local/www/apache22/data"
a:
DocumentRoot "/directorio/de/mi/sitio/web"

poner el nombre a nuestra pagina
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName www.mi_sitio_ja_ja.com:80
---------------------------------------------------------

Comentarios

Entradas populares de este blog

Configurar un Dominio en FreeBSD

Servidor DNS en FreeBSD

Unix shell scripting: Full Log