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?

link|improve this question
feedback

3 Answers

[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

link|improve this answer
feedback

DNS and Virtual Hosts

link|improve this answer
feedback

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. :)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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