Virtual Host Not Accessible When Offline, How To Fix It?
I am setting up my own local development web server, mainly for theme
development.
I've successfully setup LAMP in Ubuntu 13.04 64bit Desktop, apache works
fine.
The machine where LAMP is installed is also my deskstop station.
I've setup my first virtual host named devone.loc
I've already inserted the name inside my hosts file.
Everything is working and accessible.
It's also accessible within any machines in my lan, I have setup it up in
DNSmasq in my DD-WRT router.
But then, when I disable my network connection, the virtual host is
no longer accessible. But the default virtual host is still accessible
without network.
What seems to be the problem here? I also need to access the virtual host
within the localhost since it's also my desktop station.
I've attached my virtual host conf file below:
<VirtualHost *:80>
DocumentRoot /var/www2/
ServerName devone.loc
ServerAlias www.devone.loc
<Directory /var/www2/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
#or Deny from all
#Allow from ip.ip
</Directory>
</VirtualHost>
No comments:
Post a Comment