Páginas

miércoles, septiembre 09, 2015

virtual host local machine

On Opensuse configure http server using yast2 http tool it was imposible.
so I recommend manually configure By editing the file /vhosts.d/ip-based_vhosts.conf

file example


 #DocumentRoot /srv/www/vhosts/site1.edu.co
 DocumentRoot /home/user/public_html/proyecto1/web

 ServerName actual.loquesea.com
 ServerAdmin correo@loquesea.com
 
  AllowOverride None
  DirectoryIndex index.php
  #Require all granted
  Order allow,deny
  Allow from all
 



 DocumentRoot /home/user/public_html/site2.edu.co
 ServerName old.misitio.com
 ServerAdmin correo@misitio.com
 
  AllowOverride None
  DirectoryIndex index.php index.html
  #Require all granted
  Order allow,deny
  Allow from all
 


By some strange reason the symbolic links don't work I need put full path of my proyect in DocumentRoot variable