apache on windows virtual directory config help

前端 未结 7 456
萌比男神i
萌比男神i 2021-02-04 02:25

I\'m running Apache on Windows XP via Xampplite, and could use help configuring my virtual directory. Here\'s what I\'m hoping to do on my dev box:

  1. I want my sourc
7条回答
  •  醉话见心
    2021-02-04 03:07

    Problem resolved in a simplest way and less steps No Need of creating virtual host just change the location of target directory.

    Here's what i have done for configuration: I've done it by editing the C:/xampp/apache/conf/httpd.conf file Changings that I have done in httpd.conf file Added this script right after ScriptAlias /cgi-bin/ "C:/xampp/apache)/"

    Alias /projectXYZ "C:/pathtomyproject" Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny Allow from all

    Pathtomyproject = Complete path of project

    And changed the url of Document Root DocumentRoot " C:/pathtomyproject "

    Now restart the Apache Server by stopping the server. I have stopped Apache server, and then again started the Apache Server.

    Source: http://bytespedia.blogspot.com/2013/12/creating-virtual-directory-in-apache.html

提交回复
热议问题