I have my project running in an apache virtual host.
the name of the conf file is btapp.local.conf
this is the content of the file
<VirtualHost *:80>
ServerName btapp.local
DocumentRoot /var/www/btapp/app/webroot
<Directory /var/www/btapp/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
My local network IP is addr:192.168.3.218
But when i am trying to access the project from the network by 192.168.3.218/btapp.local
I am getting the error The requested URL /btapp.local was not found on this server.
As of now, I have edited my 000-default.conf
and put the content of btapp.local.conf
(basically i have pointed default host to the path of the project)
I want to know the follwing things
1.Is this the right way to serve a project over the network?
2.Are there other ways that I can use to serve the project through the network without modifying the 000-default.conf
file?
EDIT
this is my /etc/hosts
file content
127.0.0.1 localhost
127.0.1.1 bonnie
127.0.1.1 btapp.local