0% found this document useful (0 votes)
15 views6 pages

Linux - Apache: Configurar Virtualhost

This document provides instructions for configuring a virtual host named "streetdeveloper" on an Apache2 web server installed on Linux. It describes installing Apache2 and related PHP modules, copying the default virtual host configuration file, editing it to point to the "streetdeveloper" directory and enable the virtual host. It also covers enabling the virtual host, editing host files, and reloading the Apache configuration to apply the changes.

Uploaded by

danstreet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views6 pages

Linux - Apache: Configurar Virtualhost

This document provides instructions for configuring a virtual host named "streetdeveloper" on an Apache2 web server installed on Linux. It describes installing Apache2 and related PHP modules, copying the default virtual host configuration file, editing it to point to the "streetdeveloper" directory and enable the virtual host. It also covers enabling the virtual host, editing host files, and reloading the Apache configuration to apply the changes.

Uploaded by

danstreet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Linux - Apache

Configurar VirtualHost
Instalar Apache2
$ apt-get install apache2
$ apt-get install php5
$ apt-get install libapache2-mod-php5
$ apt-get install php5-gd
$ apt-get install php5-pgsql
$ apt-get install php5-mysql
$ apt-get install mysql-server
Configurar VirtualHost
$ cd /etc/apache2/sites-available/
$ sudo cp default streetdeveloper
$ sudo vi streetdeveloper
NameVirtualHost *:80
<VirtualHost *:80>

ServerAdmin webmaster@streetdeveloper
ServerName streetdeveloper
DocumentRoot /var/www/streetdeveloper
ErrorLog /var/log/apache2/error_streetdeveloper.log

<Directory /var/www/streetdeveloper>
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>
Crear y Activar Host virtual
a2ensite - (available 2 enable site)
Permite habilitar un sitio web disponible
$ sudo a2ensite streetdeveloper

Para desactivar el Host Virtual

$ sudo a2dissite streetdeveloper


Editar Host
$ sudo vim /etc/hosts

#hosting virtual streetdeveloper


127.0.0.1 streetdeveloper

Aplicar cambios en la configuracion


$ service apache2 reload
o
$ sudo /etc/init.d/apache2 restart
Host Windows 7
- Editar el archivo:
C:\Windows\System32\drivers\etc\hosts

# IP Nombre Host Virtual


192.168.1.200 streetdeveloper

Ingresar en el Navegador a: streetdeveloper

You might also like