You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Vallejo Gutierrez, Enrique" <en...@gestion.unican.es> on 2002/07/24 13:50:06 UTC

RE:newbie, problems with perl .pl files under Apache 1.3.26 and S criptAliasMatch problems

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

	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)
E:/WebCT/webct/webct/courses/$1/scripts/$2
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/(.*[^(\.pl)])
E:/WebCT/webct/webct/courses/$1/scripts/$2.pl

	The new lines were the following:

ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/serve_home
e:/webct/webct/webct/courses/$1/scripts/serve_home.pl
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/designer/serve_home.pl
e:/webct/webct/webct/courses/$1/designer/serve_home.exe
ScriptAliasMatch
^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/student/serve_sitemap.pl
e:/webct/webct/webct/courses/$1/scripts/serve_sitemap.exe
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/(.*)
e:/webct/webct/webct/courses/$1/scripts/$2

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

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

	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
upgrading):

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:
  http_core.c
  mod_so.c
  mod_mime.c
  mod_access.c
  mod_auth.c
  mod_negotiation.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_userdir.c
  mod_alias.c
  mod_env.c
  mod_log_config.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_setenvif.c
  mod_isapi.c

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



-----Mensaje original-----
De: Miguel Blanco [mailto:miguel_blancoe@yahoo.com]
Enviado el: martes, 23 de julio de 2002 14:00
Para: users@httpd.apache.org
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.

Saludos 


--- "Vallejo Gutierrez, Enrique"
<en...@gestion.unican.es> 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
> "...serve_home.pl"), 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:
> users-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
>  

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

_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://es.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Compatibility Explorer with Apache 1.3.26 SSL

Posted by Miguel Blanco <mi...@yahoo.com>.
Hi, please anybody knows what happend between
Microsoft Explorer and Apache 1.3.6?

I installed Apache 1.3.6 compiled with php and perl,
and the SSL/TSL module. Everything looks good but when
i tried a ssl session with Explorer 5 or 6 never ever
shows the wellcome webpage, with Netcape no problem at
all shows the wellcome webpage. I though it was the
openssl version (6d->5) so it was downgraded...looked
the httpd.conf and i saw the ifenv module there for
the microsoft clients. What can happend?, please any
thoughs?...Nestcape goes, Microsoft doesn't however
the counter in Server_Status says the session hapend
but i don't see the welcome web page just the tipical
microsoft error webpage ??

Bitte konnen sie mir helfen, ich habe keine anhung was
könnte passiert?, por favor ayuda?

please any idea, you are my last hope ;-)


Technical staff - Miguel Blanco.





_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://es.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org