You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Giannis Giakas <gg...@cc.uoi.gr> on 2002/04/23 13:43:13 UTC

I see the ASP script instead of the page

I downloaded the perl-win32-bin-07.exe and placed all the files in the
c:\ directory.

The APACHE starts OK. 

I removed all the html files at the htdocs and placed my index.asp file

I also included in the DIRECTORYINDEX the index.asp (as well as with
index.html)

I open explorer  http://localhost/

It gives me the script of the ASP file instead of the web page.

Any help here folks ?

Many thanks



Giannis
--------------------- 

Giannis Giakas PhD
Medical School
University of Ioannina

ggiakas@cc.uoi.gr


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: I see the ASP script instead of the page

Posted by Owen Boyle <ob...@bourse.ch>.
Giannis Giakas wrote:
> 
> Thanks Owen
> 
> You are talking to a non specialist :-(. Yes, the ASP is based on
> Vbscript.
> 
> Say that I am using the APACHE-ASP which I downloaded and placed in c:\
> (c:\perl)
> 
> What is the script I need to enter in the httpd.conf ?

We'll assume you have installed ASP.pm into your perl distribution...
AND... that you have mod_perl installed (if you haven't - you need to
find a binary, check: http://perl.apache.org/distributions.html)

The simplest way (IMHO) is to use this:

  # General server-wide ASP enable
  <Files *.asp>
    SetHandler  perl-script
    PerlModule  Apache::ASP
    PerlHandler Apache::ASP
    PerlSetVar  Global .
    PerlSetVar  StateDir /tmp/asp
  </Files>

Now every file called anything.asp will be passed to the ASP handler and
parsed before being served. Full instructions at:
http://www.apache-asp.org/

A word of caution - apache ASP is based on the Perl programming language
and is heavily object-oriented. It will require a certain effort to
learn how to use it if you are not a programmer (this is way more than
building HTML pages...)

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: I see the ASP script instead of the page

Posted by Giannis Giakas <gg...@cc.uoi.gr>.
Thanks Owen

You are talking to a non specialist :-(. Yes, the ASP is based on
Vbscript.

Say that I am using the APACHE-ASP which I downloaded and placed in c:\
(c:\perl) 

What is the script I need to enter in the httpd.conf ?

You are helping big time here !

Giannis


> Giannis Giakas wrote:
> > 
> > Thanks, I have no idea about linux. Do you know any solutions for 
> > win2000 ?
> 
> The solution goes in the httpd.conf so it is platform 
> independent, i.e. you do the same thing: define a handler.
> 
> Also, be aware that ASP (to my mind anyway) is a generic 
> term. I get a funny feeling you are talking about M$-ASP 
> which is based on VBscript... To get this to work with apache 
> you need at least Chilisoft (http://www.chilisoft.org/ - 
> you'll get full instructions there). In addition, there is 
> apache-ASP which is perl-based.
> 
> Rgds,
> 
> Owen Boyle.
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: I see the ASP script instead of the page

Posted by Owen Boyle <ob...@bourse.ch>.
Giannis Giakas wrote:
> 
> Thanks, I have no idea about linux. Do you know any solutions for
> win2000 ?

The solution goes in the httpd.conf so it is platform independent, i.e.
you do the same thing: define a handler.

Also, be aware that ASP (to my mind anyway) is a generic term. I get a
funny feeling you are talking about M$-ASP which is based on VBscript...
To get this to work with apache you need at least Chilisoft
(http://www.chilisoft.org/ - you'll get full instructions there). In
addition, there is apache-ASP which is perl-based.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: I see the ASP script instead of the page

Posted by Giannis Giakas <gg...@cc.uoi.gr>.
Thanks, I have no idea about linux. Do you know any solutions for
win2000 ?

Cheers

Giannis


> -----Original Message-----
> From: chad kellerman [mailto:ckellerman@alabanza.com] 
> Sent: Tuesday, April 23, 2002 2:53 PM
> To: users@httpd.apache.org
> Subject: Re: I see the ASP script instead of the page
> 
> 
> Are you using CHilisoft Asp.  Apache does not know what .asp 
> extensions are unless you have them pointing to a module in 
> the httpd.conf..
> 
>    I am familiar with CHiliSoft running on linux.  In this 
> case you need soething like:
> 
> LoadModule casp2_module 
> /opt/casp/module/linux2_optimized/apache_1.3.20/standard/mod_casp2.so
> 
> AddHandler chiliasp .asp
> AddHandler chiliasp .asa
> CaspLib /opt/casp/asp-apache-3000
> 
>     THe AddHandlers tell apache what to do with the web pages 
> that have the .asp or .asa extension.
> 
> --chad
> 
> 
> On Tue, 23 Apr 2002 14:43:13 +0300
> "Giannis Giakas" <gg...@cc.uoi.gr> wrote:
> 
> > I downloaded the perl-win32-bin-07.exe and placed all the 
> files in the 
> > c:\ directory.
> > 
> > The APACHE starts OK.
> > 
> > I removed all the html files at the htdocs and placed my index.asp 
> > file
> > 
> > I also included in the DIRECTORYINDEX the index.asp (as well as with
> > index.html)
> > 
> > I open explorer  http://localhost/
> > 
> > It gives me the script of the ASP file instead of the web page.
> > 
> > Any help here folks ?
> > 
> > Many thanks
> > 
> > 
> > 
> > Giannis
> > ---------------------
> > 
> > Giannis Giakas PhD
> > Medical School
> > University of Ioannina
> > 
> > ggiakas@cc.uoi.gr
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> > 
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: I see the ASP script instead of the page

Posted by chad kellerman <ck...@alabanza.com>.
Are you using CHilisoft Asp.  Apache does not know what .asp extensions are unless you have them pointing to a module in the httpd.conf..

   I am familiar with CHiliSoft running on linux.  In this case you need soething like:

LoadModule casp2_module /opt/casp/module/linux2_optimized/apache_1.3.20/standard/mod_casp2.so

AddHandler chiliasp .asp
AddHandler chiliasp .asa
CaspLib /opt/casp/asp-apache-3000

    THe AddHandlers tell apache what to do with the web pages that have the .asp or .asa extension.

--chad


On Tue, 23 Apr 2002 14:43:13 +0300
"Giannis Giakas" <gg...@cc.uoi.gr> wrote:

> I downloaded the perl-win32-bin-07.exe and placed all the files in the
> c:\ directory.
> 
> The APACHE starts OK. 
> 
> I removed all the html files at the htdocs and placed my index.asp file
> 
> I also included in the DIRECTORYINDEX the index.asp (as well as with
> index.html)
> 
> I open explorer  http://localhost/
> 
> It gives me the script of the ASP file instead of the web page.
> 
> Any help here folks ?
> 
> Many thanks
> 
> 
> 
> Giannis
> --------------------- 
> 
> Giannis Giakas PhD
> Medical School
> University of Ioannina
> 
> ggiakas@cc.uoi.gr
> 
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org