Hola buenas ! Les cuento mi problema:
Para desarrollar una aplicación web, necesito poder acceder a mi copia local del proyecto a través de la siguiente dirección
Lo que pasa es que cuando ingreso esta dirección, no me funciona, me manda a theshop.de
A la página en la red en sí, no a mi copia local...
Bueno, ahora mis configuraciones.
El workspace lo tengo en /home/antonio/workspaces/theshop
Tengo LAMP correctamente instalado, con todas las extensiones y demás.
Lo que hice para intentar tener esto fue:
sudo su
cd /etc/apache2/sites-availables
cp default theshop.
gedit theshop
Ahí puse:
ServerAdmin webmaster@localhost
ServerName localhost.theshop.de
DocumentRoot /home/antonio/workspaces/theshop
Options FollowSymLinks
AllowOverride All
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Luego:
a2ensite
gedit /etc/hosts
Y ahí:
127.0.0.1 localhost
127.0.0.1 theshop.de
127.0.1.1 antonio
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Después:
/etc/init.d/apache2 restart
Y nada, lo dicho antes, cuando escribo en la barra de navegación http://localhost.theshop.de me manda a la web, a theshop.de
Alguna sugerencia /ayuda ? Estoy desesperado, no soy capaz de tenerlo y me es muy urgente...
Muchas gracias a todos !
