httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vallejo Gutierrez, Enrique" <>
Subject RE:newbie, problems with perl .pl files under Apache 1.3.26 and S criptAliasMatch problems
Date Wed, 24 Jul 2002 11:50:06 GMT
Hi! Can anybody else help?

	Thanks for your help, Miguel. I have looked at httpd.conf and Apache
help, but I have found an important problem while trying to do what you say:
server_status is not a proper Apache directive (I don't know what you refer
to), so I have not been able to use it. Maybe that option is avaible for
other Operative Systems, but not for Windows 2000. I suppose it is not a
directive, so it can not be used in that way, but I don't know how to use

	I will try to describe my problem again to see if somebody can help
me, this time with more information I have discovered: This problem came
after upgrading a University Courses tool, WebCT (sorry, I made a mess, it
is not an Apache upgrading, that was later). The upgrading changed the
following lines in httpd.conf:

ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/(.*\.pl)
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/(.*[^(\.pl)])

	The new lines were the following:

ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/serve_home
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/designer/
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/(.*)

	Now, after this change, if you try to access a file
/SCRIPT/01223/scripts/ (which should be redirected to
E:/WebCT/webct/webct/courses/01223/scripts/ you get one of the
following situations:

	-the file is downloaded instead of executed.
	-you get a message "nothing to do with" in your

	Both situations happen depending on if you are accesing from one
computer or other (maybe it depends on the browser). If you try to access
the file /SCRIPT/01223/scripts/serve_home (WITHOUT .pl) it works properly.
Anyway, EVEN IF you change the first of the four new lines, adding .pl after
serve_home, you get the same result (one of the two situations above), which
is not reasonable, I think.

	Using the command line options, I got the following data (after the

E:\WebCT\webct\server>apache -v
Server version: Apache/1.3.26 (Win32)
Server built:   Jun 19 2002 15:06:00

E:\WebCT\webct\server>apache -l
Compiled-in modules:

E:\WebCT\webct\server>apache -t
e:/webct/webct/server/conf/httpd.conf: Syntax OK

	Notice that I don't even have the mod_perl compiled in! As I have
not compiled WebCT (It came in a bin file with the program) I don't know if
that is normal. I also don't know how to look at the version loaded.

	Can anybody help me? We need to access those files .pl with the
extension, because there are plenty of links stablished, and it does not
work. The program support could not give us a proper solution, and we don't
know if the problem is in httpd.conf or in other file.

	Thank you

Enrique Vallejo Gutiérrez
Centro de Formación en Nuevas Tecnologías
   Facultad de Derecho
   Planta 0 (Antigua aula 6)
Avda. Los Castros s/n
39005 - Santander (Cantabria)

-----Mensaje original-----
De: Miguel Blanco []
Enviado el: martes, 23 de julio de 2002 14:00
Asunto: Re: newbie, problems with perl .pl files under Apache 1.3.26

Enrique no he trabajado sobre windows 2000 y apache
pero si te sirve de idea te diría que actives en el
httpd.conf el server_status y mires que versión de
modulo perl carga y cula tenías antes, tambien mira
los logs para ver si hay fallos de conexión. Por otro
parece como si te hubiera perdido la extensión o no
asociará bien la extensión..lo siento me gustaría
ayudar más pero no se me ocurre.


--- "Vallejo Gutierrez, Enrique"
<> escribió: > Hi!
> 	I am a newbie in this list, and I really have not
> much idea about
> Apache. I work in a University where a web program
> (WebCT) is used to help
> teachers to create web pages for the students. That
> program runs mainly on
> Perl scripts. The web server is Apache, version
> 1.3.26, in a sistem running
> Windows 2000 server.
> 	Our problem is that, after the last security hotfix
> upgrading (to
> version 1.3.26) perl files are not properly run on
> the server. Instead, the
> file is downloaded to the client, with the ususal
> "save file as..." message
> in the web browser. We have found that the problem
> apears when a .pl file is
> referenced in the url menu bar, but if you try to
> access the file without
> the extension (that is, using "...serve_home"
> instead of
> ""), the program works normaly. This
> problem started
> happening just after the patch installing, so I
> suppose it is because of the
> hotfix.
> 	Is this an Apache known problem? The last hotfix
> installed refers to
> security problems related to running code on the
> server. Maybe the security
> problem is related to Perl extensions, and thus it
> is normal you have to
> remove the extension at the url bar, I do not know.
> I have done nothing
> relating MIME extensions, so if it has beeen
> changed, that's because of the
> hotfix.
> 	Due to the program license, we can not upgrade to
> Apache 2.0. I
> would like to know how to solve the Perl problem
> before the course begins.
> Will I have to edit the MIME settings? How can I do
> it? I feel lost!!!!
> 	I have looked at the FAQ and I have found nothing,
> nor in the
> previous messages in this list. Can anybody help me?
> 	Thank you
> Enrique Vallejo Gutiérrez
> Centro de Formación en Nuevas Tecnologías
>    Facultad de Derecho
>    Planta 0 (Antigua aula 6)
> Avda. Los Castros s/n
> 39005 - Santander (Cantabria)
> Spain
> To unsubscribe, e-mail:
> For additional commands, e-mail:

"Los productos Microsoft son realmente malos por definición".
- Linus Torvalds - Creador de Linux 
Móvil: 678012724 
Web: La Página Verde - Http:// 
Linux registered user: 212893

Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message