httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <ja...@shaw.ca>
Subject Re: [users@httpd] VirtualDirectory
Date Wed, 29 Jan 2003 12:03:13 GMT
Subzero wrote:
> This is the stuff about the VirtualDir that i have in my httpd.conf
> 
> NameVirtualHost *
> 
> <VirtualHost *>
>     ServerAdmin webmaster@domain.com
>     DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/"
>     ServerName www.domain.com
>     ErrorLog logs/error_log
>     CustomLog logs/access_log common
> </VirtualHost>
> 
> <VirtualHost *>
>     ServerAdmin webmaster@dir.domain.com
>     DocumentRoot "C:/Program Files/Apache Group/Apache/cgi-bin/dir/"
>     ServerName dir.domain.com
>     ErrorLog logs/dir.domain.com-error_log
>     CustomLog logs/dir.domain.com-access_log common
> </VirtualHost>
> 
instead of virtualhost * try with the name you want it to be.
( http://dir.domain.com )
though setting your cgi dir up as a virtual host seems odd. it isn't needed
> As i said,
> http://www.domain.com/cgi-bin/dir works
> http://dir.domain.com shows me the correct .pl file, but it doesn't process
> it, it types it as a txt file
> 
> i have also tried having this
> 
> 
> 
>     <Directory "C:/Program Files/Apache Group/Apache/cgi-bin/dir">
>         AllowOverride None
>         Options ExecCGI
>         Order allow,deny
>         Allow from all
>     </Directory>
> 
ScriptAlias /cgi-bin/dir/ "C:/Program Files/Apache
Group/Apache/cgi-bin/dir/"

try scriptalias after you have defined the directory. instead of before.


---------------------------------------------------------------------
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


Mime
View raw message