Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 27th, 2002, 05:40 AM
usuallyconfused usuallyconfused is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Surrey
Posts: 23 usuallyconfused User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 52 sec
Reputation Power: 0
CGI with virtual hosts

From my web server I have successfully run static web pages for multiple domains using something like:

<VirtualHost *>
ServerName www.mydomain.com
ServerAlias www.mydomain.com
DocumentRoot "C:/Program Files/Apache/webspace/mypages"
</VirtualHost>

I have also (before I started using virtual hosts) run cgi programs by putting them in the "C:/Program Files/Apache/cgi-bin/" directory with the Apache default ScriptAlias handling it.

I now want to run cgi programs under a specific virtual host and cannot get it to work. Should I be putting the ScriptAlias within the VirtualHost directive?

Reply With Quote
  #2  
Old May 27th, 2002, 06:12 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Should I be putting the ScriptAlias within the VirtualHost directive?

Yes. And make sure that directory doesn't live under the docroot of that vhost, that's what the directive Alias is for. To put it simple, it's to map URI to directory as in filesystem outside of your docroot.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > CGI with virtual hosts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT