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