Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

[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 webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

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

 
discard

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.