Most of us want to be able to provide a form process,
counter, guestbook, things of that nature for our clients to use. But we don't want
each client to have to setup and configure these themselves. So we create a global
cgi-bin....
Así, cualquier dominio en el server llamando a /cgi-pub/
será redireccionado a /home/sites/home/web/cgi-pub/.
Entonces, si el cliente que tiene el dominio cliente1.com
quiere mandar datos a formmail (ubicado en /home/sites/home/web/cgi-pub/),
mandará los datos a http://client1.com/cgi-pub/FormMail.pl
1. Loguéese como ADMIN,
sin cambiar a root
2. mkdir /home/sites/home/web/cgi-pub/
3. chmod 755 /home/sites/home/web/cgi-pub/
4. su - (cambiar a root)
5. pico /etc/httpd/conf/httpd.conf
6. Agregue la línea
que sigue en algún lugar del script:
ScriptAlias /cgi-pub/
/home/sites/home/web/cgi-pub/
7. Escriba:
/etc/rc.d/init.d/httpd restart
8. Y listo. Recuerde cargar
a /home/sites/home/web/cgi-pub/ cuando esté logueado
como ADMIN.
| TRUCOS |
|
Configurando un CGI Bin global |
Atrás << |
|
|