ASP Pages being prompted for download
I have installed Sun ASP 4 on our unix server and it appears to have installed fine.
On some .asp pages I am prompted to download the asp file whe I connect to it.
In the ASP Admin Console it says the ASP server is running as well as the web server.
The server log files are empty as well as the ASP Access Log.
All the virtual hosts are enabled in the web server tab.
Have I missed something?
# 1
What version of sunone asp? 4.0.2 I assume.
What web server and version?
What flavour and version of unix?
It sounds like either a webserver misconfiguration - I've seen similar things when the mime type hasn't been configured but I'd expect it to happen all the time.
Check you haven't any other references to .asp in your web config files as there are other things that use the .asp extension (I think there is an apache/perl/asp module for instance) and could be causing confusion.
Which log files are you checking as its very odd that they are empty, every page accessed should be logged.
I'd suggest you try a simple asp page (hello world sort of thing) on a virtual host that doesn't work to confirm it works, then pair down a none working page until you find out what the problem is.
I guess a reboot wouldn't harm either just incase there is an errant web server process or something.
Duncan
# 2
I am running Sun ASP 4.0.2 and Apache/1.3.33 (Unix).
Normal asp pages are being displayed but all the asp code is being written to the page and if i try to pass a variable say via a form, the destination page prompts to download. (kind of like when you put a php page on a windows server that does not support php)
The web logs only show me what pages are being used nothing else, no errors or anything.
The help files dont really help at all either becasue there are no "troubleshooing what ifs".
# 3
Check the following exists in your httpd.conf
## Sun Java System Active Server Pages installer
AddHandler chiliasp .asp
AddHandler chiliasp .asa
CaspLib /opt/casp/asp-server-3000
(p.s. if you want to serve xml via asp also add AddHandler chiliasp .xml
)
Also ensure
LoadModule casp2_module /opt/casp/module/linux2_i686_optimized/apache_2.0.x/20020628/standard/mod_casp2 .so
is in there and not in IfModule block, the installer has been known to get it in the wrong place.
Check there are no other .asp references other than DirectoryIndex
Duncan
# 4
I have edited the httpd.conf file and added those lines and am still being prompted to download the asp files.I have also checked the httpd.conf file and it does not contain any other reference to .asp.Any other ideas?
# 5
If they were not already in then I'd say that the install didn't work or has been over written.Try removing and reinstalling asp 4.0.2Duncan
# 6
Ooops.
I added those lines to my httpd.conf file, restarted the web server and then the server crashed and would not retsart.
I then removed the code from the httpd.con file, and the web server started again no problems.
I have sent a ticket request to Sun several days ago and had no response from them whatsoever.
Thanks Duncan for helping me so far.
# 7
What flavour of unix and version?Duncan
# 8
Hi Duncan,I am running Sun ASP 4.0.2 and Apache/1.3.33 (Unix).
# 9
As asked beforeWhat flavour of Unix?Redhat Linux, Fedora Core, Redhat Enterpise, Debian etc etc and version?Duncan
# 10
Hello,
I have the same problem. ASP files get download prompt. Any leads greatly appreciated! This is me:
* Fedora C4
* Apache
* Admin Server runs fine on port 5100, Virtual host enabled
* Looks like it starts fine: Starting httpd: casp2ap: Sun Java System Active Server Pages web server module started, version 4.0.2.35 [ OK ]
* VirtualHost as execute permissions.
Apache Config:
## Sun Java System Active Server Pages installer
AddHandler chiliasp .asp
AddHandler chiliasp .asa
CaspLib /opt/casp/asp-server-3000
<VirtualHost *:80>
DocumentRoot /home/www/A.B.net
ServerName A.B.net
ServerAlias A.B.net
ErrorLog logs/A.B.net-error_log
DirectoryIndex default.asp
</VirtualHost>
# 11
Correction: * VirtualHost Has execute permissions.I also have LoadModule casp2_module /opt/casp/module/linux2_i686_optimized/apache_2.0.x/20020628/standard/mod_casp2 .so
# 12
Out of interest try the following and post the results.
telnet A.B.net 80
Now cut and paste the text below and press return twice.
GET / HTTP/1.1
Host: A.B.net
Connection: close
Cache-Control: no-cache
Accept: */*
I guess I may have to install 4.0.2 on fc4 and see if I have any issue.
Duncan