![]() |
ASP.NET unter Linux?
Moin,
ich habe auf meinem Linux Server Mono/mod_mono für Apache installiert, dann habe ich auf dem Server die Datei "quotes.aspx" und "quotes.cs" hochgeladen... Wenn ich nun die Seite aufrufe: ![]() |
Re: ASP.NET unter Linux?
Du mußt die Endung in der Apache Config an mod_mono binden.
|
Re: ASP.NET unter Linux?
hallo mkinzler,
macht Mono das nicht von selbst wenn ich mod_mono installiere? |
Re: ASP.NET unter Linux?
Schau doch mal nach, ob der entsprechende AddType gesetzt ist.
|
Re: ASP.NET unter Linux?
Zitat:
|
Re: ASP.NET unter Linux?
Hm, scheint aber doch so, siehe:
Zitat:
|
Re: ASP.NET unter Linux?
Das laden des Moduls und das Festlegen des Moduls auf Endungen sind 2 verschiedene Dinge. Scahu mal, ob der addType gesetzt ist.
|
Re: ASP.NET unter Linux?
Hier mal meine Config:
mod_mono.config:
Code:
Und dann noch in den einzelnen VHosts in denen Mono laufen soll:
<IfModule !mod_mono.c>
LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so AddType application/x-asp-net .aspx AddType application/x-asp-net .asmx AddType application/x-asp-net .ashx AddType application/x-asp-net .asax AddType application/x-asp-net .ascx AddType application/x-asp-net .soap AddType application/x-asp-net .rem AddType application/x-asp-net .axd AddType application/x-asp-net .cs AddType application/x-asp-net .config AddType application/x-asp-net .dll DirectoryIndex index.aspx DirectoryIndex Default.aspx DirectoryIndex default.aspx </IfModule>
Code:
Und auf meinem default-Host:
MonoAutoApplication enabled
Code:
(Damit man die Mono-Prozesse managen kann.)
<Location /mono>
SetHandler mono-ctrl </Location> ![]()
Code:
Dass das wirklich eine .NET - Seite unter Apache ist siehst Du, wenn Du die URL ohne www. vorne aufrufst.
<VirtualHost 81.169.188.104:80>
ServerName wrdlbrmpft.de ServerAlias [url]www.wrdlbrmpft.de[/url] ServerAdmin [email]sgingter@web.de[/email] DocumentRoot "/var/kunden/webs/sGingter/" php_admin_flag safe_mode On MonoAutoApplication enabled </VirtualHost> |
Re: ASP.NET unter Linux?
danke :)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz