What I Want to do: access my zend framework app from other computer in my private lan
e.g: //192.168.x.x/my_app
- 192.168.x.x is my ubuntu server ip (from ifconfig)
- my_app is a virtualhost that I set in the server (/etc/hosts and apache2).
In my server if I do //my_app
it works.
In another pc if I do //192.168.x.x
it shows "It's working" default message but
if I do //192.168.x.x/my_app
it "Not found on this server"
Server settings
/etc/hosts
127.0.1.1 localhost
127.0.1.1 my_app
/etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
DocumentRoot "/var/www"
ServerName localhost:80
</VirtualHost>
<VirtualHost *:80>
ServerName my_app
DocumentRoot "/var/www/my_app/public"
SetEnv APPLICATION_ENV "development"
<Directory "/var/www/my_app/public">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Hope someone can help me. Thanks!