Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create subdomain on my local machine(OS is Fedora 8) say test.localhost

Before i made following changes i started httpd.Open localhost in browser.It was showing apache2 page.But i have not installed apache2.There is no directory like apache2 under etc. Should i install apache2? I modified httpd.conf file by making following entry

<VirtualHost> test.localhost
DocumentRoot /var/www/test/
# ErrorLog  /var/www/test/logs/error.log
#CustomLog /var/www/test/logs/access.log combined


I modified host conf by making entry

# localhost test.localhost

I have made entry in name.conf as follows

zone "test.localhost" {
  type master;
  file "/var/named/test.localhost"; 

So i have modified only 3 files and restarted httpd service. It is showing following error

Starting httpd: Syntax error on line 993 of /etc/httpd/conf/httpd.conf: Invalid command '', perhaps misspelled or defined by a module not included in the server configuration

What is going wrong?

Can any one give me steps to create subdomain on local machine in linux(fedora 8)

Your response will be greatly appreciated !!

share|improve this question

closed as off-topic by MadHatter, Iain, Dave M, mdpc, Jenny D Dec 11 '13 at 8:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – MadHatter, Iain, Dave M, mdpc, Jenny D
If this question can be reworded to fit the rules in the help center, please edit the question.

Fedora 8? Are you serious?! – Michael Hampton Dec 10 '13 at 17:28
any idea how i can upgrade fedora 8 to 9/10? i tried but it is not working. – Prashant Shilimkar Dec 11 '13 at 3:16
At this point? It's so old you should just install a fresh copy of a current release of Fedora. Attempting to upgrade will be nothing less than a nightmare. – Michael Hampton Dec 11 '13 at 3:18
but at this point can it(what i have asked in question) be done with fedora 8? – Prashant Shilimkar Dec 11 '13 at 3:20
up vote 1 down vote accepted

Your httpd.conf is damaged. A "ServerAliases" keyword somehow disappeared. A working version:

ServerName test
ServerAlias test.localhost
DocumentRoot /var/www/test/
# ErrorLog  /var/www/test/logs/error.log
#CustomLog /var/www/test/logs/access.log combined

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.