[users@httpd] Allowing my vhost to use cgiwrap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

How could I allow my virtual host (on port 443) to run scripts from /var/apache/docs/virtualhost/cgi-bin and use the cgiwrap in my default (port 80) server /var/apache/docs/cgi-bin? The same cgi scripts would run from the default web server but not in on virtual host giving me "CGIWrap Error: User not found".
I'm running apache 2.054 in a Sun Box with solaris 2.8.


Here is my part of my httpd.conf:

ScriptAlias /cgi-bin/ "/var/apache/cgi-bin/"
<Directory "/var/apache/cgi-bin">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

Here is my part of my ssl.conf:

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/var/apache/docs/virtualhost/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

<VirtualHost xxx.xxx.x.xx:443>

#   General setup for the virtual host
DocumentRoot "/var/apache/docs/virtualhost/"
ServerName virtualhost.com
ServerAdmin root@xxxxxxxx
ErrorLog /var/apache/logs/virtualhost-error_log
TransferLog /var/apache/logs/virtualhost-access_log
ScriptAlias /cgi-bin/ "/var/apache/docs/virtualhost/cgi-bin/"
AddHandler cgiwrap .cgi
        <Directory "/var/apache/docs/virtualhost/cgi-bin">
                AllowOverride All
                Options Indexes FollowSymLinks ExecCGI
                SetHandler cgi-script
                Order allow,deny
                Allow from all
        </Directory>

Thanks,
Daniel Prieto

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux