Development

WindowsXPDevelopmentEnvironmentVhost (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of WindowsXPDevelopmentEnvironmentVhost

Show
Ignore:
Author:
anonymous (IP: 81.242.251.174)
Timestamp:
03/21/06 15:09:53 (12 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WindowsXPDevelopmentEnvironmentVhost

    v1 v2  
    11= Overview = 
    22 
    3 This page details the steps required to setup a virtualhost for people that have a current webroot and do not want to use their current projects by adding the virtualhost directive, this problem is common when you are using a WAMP environment for development, and have an existing list of projects in c:/wamp/www that you want to keep using 
     3This page details the steps required to setup a virtualhost for people that have a current webroot and do not want to lose their current (non-symfony) projects by adding the virtualhost directive, this problem is common when you are using a WAMP environment for development, and have an existing list of projects in c:/wamp/www that you want to keep using. 
    44 
    55= Step 1 : Create an internal host = 
    1414}}} 
    1515 
    16 Add a chosen virtualhost, for askeet it would be 
     16Add a chosen virtual host, for askeet it would be 
    1717 
    1818{{{ 
    2929 
    3030 
    31 First we will add a virtualhost for the already existing, nonsymfony projects located in c:/wamp/www (or somewhere else) 
    32  
     31First we will add a virtualhost for the already existing, non-symfony projects located in c:/wamp/www (or somewhere else). If you forget this after enabling namevirtualhost in your apache config, apache will use the first virtualhost, and without the underlying virtualhost, that would mean that all projects listed in localhost/project1, localhost/project2 would point to your http://askeet chosen host, and thats not what we want right ? 
    3332 
    3433{{{ 
    4544}}} 
    4645 
    47  
    48 After adding the virtualhost you need to add a virtualhost for your "non-symfony"/default projects, because if you enable the NameVirtualHost, apache will look for the first hostname, and you don't want that to be the symfony project, right ? 
     46After adding the virtualhost you need to add a virtualhost for your symfony project (added as internal host, step 1). 
    4947 
    5048{{{ 
    5149<VirtualHost *:80> 
    52   ServerName askeet 
     50  ServerName askeet <== the chosen virtual host in step1 
    5351  DocumentRoot "C:\wamp\www\symfony\web"  <== update with correct path 
    5452  DirectoryIndex index.php 
    6462 
    6563 
    66 Restart your apache, no need to reboot 
     64Restart your apache, no need to reboot. 
     65 
     66{{{ 
     67apachectl -k graceful 
     68}}} 
     69 
    6770 
    6871= Step 3 : Check out what you just did = 
    7275and  
    7376 
    74 http://localhost/ will point to your old 'non-symfony' projects. 
     77http://localhost/projectX will point to your old 'non-symfony' projects. 
    7578 
    7679