[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: Re: [users@httpd] Configuring cgi execution with vhosts
From: BAO RuiXian <ruixian.bao () pp ! inet ! fi>
Date: 2004-04-30 15:56:03
Message-ID: 40927713.7050108 () pp ! inet ! fi
[Download RAW message or body]
Maurice Height wrote:
>Hi
>
>I want to configure virtual hosts on Apache server so that different
>intranet
>applications can be run on the the same machine.
>I want all code and files for each application to be completely independant
>of the others.
>My setup is Windows 2000 and Apache v2.0.48 The httpd.conf, listed below is
>working OK for non-cgi requests,
>but I cannot figure out how to setup cgi scripts to run from the relevant
>cgi-bin directory.
>
>For instance I want to be able execute cgi scripts like so:
> http://192.168.0.1:8081/cgi-bin/app1.cgi
>or
> http://192.168.0.1:8083/cgi-bin/app3.cgi
>
>How do I configure EACH cgi-bin directory to something like the following?
>
>
How about you configurate and alias /cgi-bin/ in each vh?
Best
Bao
>Alias /cgi-bin/ "D:/www/app?/cgi-bin/"
><Directory "D:/www/app?/cgi-bin/">
> AllowOverride None
> Options ExecCGI -Indexes
> AddHandler cgi-script .pl .cgi
> Order allow,deny
> Allow from all
></Directory>
>
>My application dirs are structured as:
>D:\www
> app1
> htdocs
> cgi-bin (contains app1.cgi)
> app2
> htdocs
> cgi-bin (contains app2.cgi)
> app3
> htdocs
> cgi-bin (contains app3.cgi)
>
>My httpd.conf is:
>
>Listen 8081
>Listen 8082
>Listen 8083
>
><Directory "D:/www/app1/htdocs">
>Options -Indexes FollowSymLinks
>AllowOverride None
>Order allow,deny
>Allow from all
></Directory>
>
><Directory "D:/www/app2/htdocs">
>Options -Indexes FollowSymLinks
>AllowOverride None
>Order allow,deny
>Allow from all
></Directory>
>
><Directory "D:/www/app3/htdocs">
>Options -Indexes FollowSymLinks
>AllowOverride None
>Order allow,deny
>Allow from all
></Directory>
>
>NameVirtualHost 192.168.0.1:8081
><VirtualHost 192.168.0.1:8081>
> DocumentRoot "D:/www/app1/htdocs"
> ServerName 192.168.0.1:8082
></VirtualHost>
>
>NameVirtualHost 192.168.0.1:8082
><VirtualHost 192.168.0.1:8082>
> DocumentRoot "D:/www/app2/htdocs"
> ServerName 192.168.0.1:8082
></VirtualHost>
>
>NameVirtualHost 192.168.0.1:8083
><VirtualHost 192.168.0.1:8083>
> DocumentRoot "D:/www/app3/htdocs"
> ServerName 192.168.0.1:8083
></VirtualHost>
>
>------------------------------
>Sorry for the long post but hope I have explained the problem.
>
>Thanks for your time
>Maurice
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic