Virtual Hosts

Discussion in 'Apache' started by XandroZ, Feb 23, 2009.

  1. #1
    I am using XAMP on Windows XP and I need to create virtual hosts.

    I modified hosts file in windows:
    
    127.0.0.1       localhost
    127.0.0.1       projects.eu
    127.0.0.1       learning.eu
    
    Code (markup):
    and httpd-vhosts.conf:
    
    <VirtualHost projects.eu>
      DocumentRoot "D:\xampp\htdocs\Projects"
      ServerName projects.eu
    
      CustomLog " D:\xampp\htdocs\Projects\projects.eu-access_log" combined
      ErrorLog "D:\xampp\htdocs\Projects\projects.eu-error_log"
    
      <Directory "D:\xampp\htdocs\Projects">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
      </Directory>
    </VirtualHost>
    
    <VirtualHost learning.eu>
      DocumentRoot "D:\xampp\htdocs\Learning"
      ServerName learning.eu
    
      CustomLog " D:\xampp\htdocs\Learning\learning.eu-access_log" combined
      ErrorLog "D:\xampp\htdocs\Learning\learning.eu-error_log"
    
      <Directory "D:\xampp\htdocs\Learning">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
      </Directory>
    </VirtualHost>
    Code (markup):
    The apache start then stop immediately.

    In the error files: [error] (20024)The given path is misformatted or contained invalid characters: invalid transfer log path D:\\xampp\\htdocs\\Learning\\learning.eu-access_log.

    The path are correctly , from my poit of view, because Apache is creating and writing in the error file: earning.eu-error_log

    The same error I get for the other virtual host.
     
    XandroZ, Feb 23, 2009 IP
  2. BradenFase

    BradenFase Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you make sure there were absolutely no errors in directory? I noticed a space before D:/. Did you try removing the space?

    CustomLog " D:\xampp\htdocs\Projects\projects.eu-access_log" combined
    Code (markup):
     
    BradenFase, Feb 26, 2009 IP
  3. XandroZ

    XandroZ Peon

    Messages:
    395
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I resolved, the problem was with "combined"
     
    XandroZ, Feb 26, 2009 IP
  4. BradenFase

    BradenFase Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Oh. Okay. That's good.
     
    BradenFase, Feb 26, 2009 IP