Question: I want to create virtual hosts for my project in zend framework. I have frontend and backend (admin) functionality. I created the virtual host for my frontend functionality with necessary configuration and it running properly.

Example: In /etc/apache2/sites-available I created the file roomstays and my code is in **var/www** folder.

```
<VirtualHost *:80>    
DocumentRoot "/var/www/roomstays/public"    
ServerName localhost

#This should be omitted in the production environment
SetEnv APPLICATION_ENV development

<Directory "/var/www/roomstays/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>    
</VirtualHost>

```

And it running properly with localhost.

Now I have admin i.e.backend code and as previous one I want to run this code. I put my newer code into same **var/www** directory with named roomstaysback. My question is how to create virtual host for this backend code. I want to run both frontend and backend side code. 

Please give me any solution I am completely new in it thanks.....

Answer: 
1. You can save data as normal `text` file or `plist` file.
2. You can use `SQLLite` to save data.

Other than this if you are using server driven application, then you can save your data on server and get back when you need that.
You cans use plist or coreData.As you used NSUserDefaults , that means data is quite small so plist will be a good idea.Both are apple's so quite effiecient .If data gets really large you can use sqlite.