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

down vote favorite

Hi ,

I need to set up multiple projects on lampp. How can i create sub domains for these multiple projects.

My projects are in cakePHP.

Can anyone help me?

share|improve this question

[root@rajat Rajat]# vi /etc/httpd/conf/httpd.conf

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#<VirtualHost *:80>
#    ServerAdmin
#    DocumentRoot /www/docs/
#    ServerName
#    ErrorLog logs/
#    CustomLog logs/ common

change according to your requirement

share|improve this answer

DNS and Virtual Hosts

share|improve this answer

The official Apache documentation has an excellent chapter about virtual hosts with real-world examples. Read that first and then ask if there's something you don't understand. :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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