Hello,
I currently have mydomain able to run cgi-scripts which are stored in the subdirectory of home/mydomain/cgi-bin. I would like mynewdomain to use a modified version of this script from it's own cgi-bin. So I guess what I am asking how do I give mynewdomain it's own cgi-bin. Can I define a new ScriptAlias globaly? -- thanks
path to domain:
/home/mydomain
|cgi-bin
|www
//HTTPD SECTIONS
NameVirtualHost xxx.xxx.xxx.xx
#ScriptAlias /cgi-bin/ "/var/# "/var/ should be changed to your ScriptAliased
# CGI directory exists, if you have that configured.
#
#<Directory "/var/# AllowOverride None
# Options ExecCGI
# Order allow,deny
# Allow from all
#</Directory>
ScriptAlias /cgi-bin/ /home/mydomain/cgi-bin/
<Directory "/home/mydomain/Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/mydomain/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Virtual hosts
# Virtual host mydomain.com
<VirtualHost xxx.xxx.xxx.xx>
DocumentRoot /home/mydomain/www/
ServerAdmin me@mydomain.com
ServerName ServerSignature email
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xx>
DocumentRoot /home/mynewdomain/www/
ServerAdmin me@mynewdomain.com
ServerName ServerSignature email
</VirtualHost>
# Directories...
<Directory "/var/ Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
I currently have mydomain able to run cgi-scripts which are stored in the subdirectory of home/mydomain/cgi-bin. I would like mynewdomain to use a modified version of this script from it's own cgi-bin. So I guess what I am asking how do I give mynewdomain it's own cgi-bin. Can I define a new ScriptAlias globaly? -- thanks
path to domain:
/home/mydomain
|cgi-bin
|www
//HTTPD SECTIONS
NameVirtualHost xxx.xxx.xxx.xx
#ScriptAlias /cgi-bin/ "/var/# "/var/ should be changed to your ScriptAliased
# CGI directory exists, if you have that configured.
#
#<Directory "/var/# AllowOverride None
# Options ExecCGI
# Order allow,deny
# Allow from all
#</Directory>
ScriptAlias /cgi-bin/ /home/mydomain/cgi-bin/
<Directory "/home/mydomain/Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/mydomain/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Virtual hosts
# Virtual host mydomain.com
<VirtualHost xxx.xxx.xxx.xx>
DocumentRoot /home/mydomain/www/
ServerAdmin me@mydomain.com
ServerName ServerSignature email
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xx>
DocumentRoot /home/mynewdomain/www/
ServerAdmin me@mynewdomain.com
ServerName ServerSignature email
</VirtualHost>
# Directories...
<Directory "/var/ Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>