|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
>> 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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > CGI with virtual hosts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|