I'd like to define virtual host for testing my site locally
i put folders of my sites with name byttes and dms in /home/sepideh/www/ path.
Then i change file in path /etc/apache2/sites-enables/000-default and i add below lines
Expand|Select|Wrap|Line Numbers
- <VirtualHost>
- ServerRoot /home/sepideh/www/byttes
- ServerName byttes.ir
- ServerAlias byttes.ir
- </VirtualHost>
- <VirtualHost>
- ServerRoot /home/sepideh/www/dms
- ServerName dms.com
- ServerAlias dms.com
- </VirtualHost>
and i add 127.0.0.1 byttes.ir
127.0.0.1 dms.com
and the restart apache via /etc/init.d/apache2 restart
but i unfortunately see below error with restart apache
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
with typing byttes.ir or dms.com in the browser url i see below content
Not Found
The requested URL / was not found on this server.
Apache/2.2.14 (Ubuntu) Server at dms.com Port 80
would you please help me to solve problem
thanks alot for your help.