473,396 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to define several VirtualHost with apache 2 and ubuntu 10.4?

hi
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
  1. <VirtualHost>
  2. ServerRoot /home/sepideh/www/byttes
  3. ServerName byttes.ir
  4. ServerAlias byttes.ir
  5. </VirtualHost>
  6.  
  7. <VirtualHost>
  8. ServerRoot /home/sepideh/www/dms
  9. ServerName dms.com
  10. ServerAlias dms.com
  11. </VirtualHost>
  12.  
too, i change hosts file in path /etc/hosts
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.
Mar 5 '11 #1
1 3548
i found problem i wrote ServerRoot instead of DocumentRoot
with this change i answer correctly but i still get the same final error about apache that is as follow as

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 ]
Mar 5 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: TrashOverride | last post by:
Hello guys i have a question about apache... i have installed Apache 2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to access my apache server -> not to use http://localhost but...
0
by: KevinGravelle | last post by:
Hello, I am running an Apache web server and my httpd configuration file is utilizing the aspdotnet_module in order to run an ASP.NET application. Whenever I try and open my existing web...
6
by: bizt | last post by:
Hi, My knowledge of apache is nothing impressive,. I purely use it to run local websites. I was wondering however, if it is possible to create more local domains like localhost. I like my local...
2
by: Cliff Martin | last post by:
I want to define several groups of related magic numbers. I am writing a program to parse someone else's formatted data, and they have several fields that could be set to a number of different...
7
by: aaragon | last post by:
Hi everyone, I have a simple question. I'm trying to make a macro in one file so I can use it in main.cpp. The idea is that I the user of my code has simple to type the macro definition to replace...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
0
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
9
by: camphor | last post by:
hi, I am very new to PHP and trying to set up a virtual host in Apache so I can test the protx Form PHP Intergration kit I received this message after I restarted Apache: Syntax error on...
1
helimeef
by: helimeef | last post by:
Hey all, I'm having trouble setting up VirtualHosts on an Apache server running on Mac OS X 10.5 Leopard. I followed this tutorial, and everything is working (except VirtualHost of course). Okay, so...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.