Vitual Host in Xampp

It is a very important for symfony developer to use virtual host.

I am going to give a simple help here. Any further help will be appreciate …

NameVirtualHost *:80


<VirtualHost *:80>
    DocumentRoot "E:/WebSites/xampp/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "E:/WebSites/xampp/htdocs/kh3.3.0"
    ServerName localhost.kohana.dev
    <Directory "E:/WebSites/xampp/htdocs/kh3.3.0">
	Options Indexes FollowSymLinks ExecCGI Includes
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "E:/WebSites/xampp/htdocs/sf-1419/jobeet/web"
    ServerName www.jobeet.com.localhost
  DirectoryIndex index.php
  <Directory "E:/WebSites/xampp/htdocs/sf-1419/jobeet/web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf E:\WebSites\xampp\htdocs\sf-1419\jobeet\lib\vendor\symfony\data\web\sf
  <Directory "E:/WebSites/xampp/htdocs/sf-1419/jobeet/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

In C:\Windows\System32\drivers\etc hosts

127.0.0.1       localhost
127.0.0.1       localhost.kohana.dev #change to match your Virtual Host.
127.0.0.1       www.jobeet.com.localhost #change to match your Virtual Host.
Advertisements

Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: