Tuesday 3 December 2013

Creating Virtual Directory in the IBM HTTP Server

There are multiple ways of doing this task but i am showing the one that i used to prefer


I'm running IBM HTTP Server 7.0 on Windows Server 2008, and could use help configuring my virtual directory or Changing from default Directory To my Defined Directory. 
I want my source files to live outside of the IBM HTTP Server htdocs directory


SOLUTION
Here's what i have done for configuration:
I've done it by editing the C:\Program Files (x86)\IBM\HTTPServer\conf\httpd.conf file
Changings that I have done in httpd.conf file
Added this script right after
ScriptAlias /cgi-bin/ "C:/Program Files (x86)/IBM/HTTPServer/cgi-bin/"


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

</Directory>

Pathtomyproject = Complete path of project

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

Now restart the IBM HTTP Server by stopping the server.
I have stopped Admin Server And HTTP server
And then again started the Admin server And HTTP Server. 


Now your http://localhost point to your defined directory.

0 comments:

Post a Comment