DeveloperSide.NET Forums devside.net
July 30, 2010, 03:51:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Web-Developer Server Suite v2.00 Released on SourceForge.NET!!!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: mod_aspdotnet problems  (Read 2501 times)
0 Members and 1 Guest are viewing this topic.
whitburn6
Guest
« on: March 28, 2009, 07:46:27 PM »

I downloaded the old version - Version 2.00 off sourceforge, the install went well, all my php scripts run properly, but getting mod_aspdotnet to run is a real pain.
I get this error message:
Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.6 (Win32) PHP/5.2.5 mod_ssl/2.2.6 OpenSSL/0.9.8g mod_aspdotnet/2.2 Server at 127.0.0.1 Port 80

I checked my error logs, and this came up:
[Sat Mar 28 23:41:20 2009] [error] [client 127.0.0.1] mod_aspdotnet: No AspNetMount URI for request: <snipped>

However, I'd mounted Apache::ASP to C:/www/vhosts/ so why did this error happen?

mod_aspdotnet is included in httpd.conf so it shouldn't have these errors...

« Last Edit: March 28, 2009, 07:48:18 PM by whitburn6 » Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3263


View Profile WWW Email
« Reply #1 on: March 29, 2009, 08:27:16 AM »

Here is the example file (under the pro version)...
Code:
<IfModule aspdotnet_module>

# Mount the asp.net sample
AspNetMount /asp "D:/www/vhosts/localhost/_asp"

# Map all requests for /asp to the asp.net sample
Alias /asp "D:/www/vhosts/localhost/_asp"

# Allow asp.net scripts to be executed in the asp.net sample
<Directory "D:/www/vhosts/localhost/_asp">
Options FollowSymlinks Indexes
AspNet Files
Order allow,deny
Allow from all
DirectoryIndex Default.htm Default.html Default.aspx
</Directory>

</IfModule>

There should be something similar under the community edition. Where you can at least get the example to work. Start from there.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
whitburn6
Guest
« Reply #2 on: March 29, 2009, 03:19:00 PM »

Here is the example file (under the pro version)...
Code:
<IfModule aspdotnet_module>

# Mount the asp.net sample
AspNetMount /asp "D:/www/vhosts/localhost/_asp"

# Map all requests for /asp to the asp.net sample
Alias /asp "D:/www/vhosts/localhost/_asp"

# Allow asp.net scripts to be executed in the asp.net sample
<Directory "D:/www/vhosts/localhost/_asp">
Options FollowSymlinks Indexes
AspNet Files
Order allow,deny
Allow from all
DirectoryIndex Default.htm Default.html Default.aspx
</Directory>

</IfModule>

There should be something similar under the community edition. Where you can at least get the example to work. Start from there.

Thanks for that. I figured it out anyway, just installed the latest modaspdotnet.msi build and unpacked it into the Apache22 directory in C:/www/Apache22. Now my asp pages work well.

Still not quite sure about one thing... what's the absolute limit on number of virtual hosts - if there is one?
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3263


View Profile WWW Email
« Reply #3 on: March 29, 2009, 05:32:05 PM »

I don't think there is a hard limit on the amount of static virtual hosts Apache can take. The only thing it should depend on is your memory resources and the amount of files the process can keep open at any given time. I've seen some error out at around 600, but I don't see why you can't go into the thousands.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
whitburn6
Guest
« Reply #4 on: March 31, 2009, 12:57:53 PM »

Thanks! One more question... why does my server only recognize index.html index.php index.asp files even though index.htm is covered in httpd.conf as shown here:
Quote
<IfModule dir_module>
    DirectoryIndex index.html index.php index.aspx index.asp
</IfModule>
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3263


View Profile WWW Email
« Reply #5 on: March 31, 2009, 01:25:21 PM »

What I'm seeing is that you *do not* have "index.htm" in there. Just "index.html".
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
whitburn6
Guest
« Reply #6 on: March 31, 2009, 01:34:14 PM »

What I'm seeing is that you *do not* have "index.htm" in there. Just "index.html".

Fixed that. I also tried to .htaccess a folder, but when I do it just lists the directory contents!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!