0

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?

Dora
  • 11
  • 3

3 Answers3

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

Camilo Martin
  • 375
  • 1
  • 4
  • 11
Rajat
  • 3,329
  • 21
  • 29
2

DNS and Virtual Hosts

MDMarra
  • 100,183
  • 32
  • 195
  • 326
1

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

Janne Pikkarainen
  • 31,454
  • 4
  • 56
  • 78