Pages : 1
#1 Le 19/07/2020, à 17:23
- Neelix
Connexion à un serveur apache avec mono
Bonjour,
Je compte encore une fois sur la communauté pour trouver de l'aide.
J'ai installé un serveur apache2 ainsi que mod_mono, le tout à partir des dépots.
J'ai configuré un serveur virtuel. voici ma configuration:
<VirtualHost *:80>
ServerName ccdump.fr
ServerAlias www.ccdump.fr
DocumentRoot /var/www/html/ccdump.fr/ccdump/
<Directory /var/www/html/ccdump.fr/ccdump>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
SetHandler mono
DirectoryIndex index.asp index.aspx index.html
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
et mon application:
<apps>
<web-application>
<name>Computer Core Dump</name>
<vpath>/ccdump</vpath>
<path>/var/www/html/ccdump.fr/ccdump</path>
<vhost>ccdump.fr</vhost>
</web-application>
</apps>
J'ai également ajouté le domaine dans mon /etc/host
J'obtient l'erreur suivante en accédant au serveur:
System.InvalidOperationException
Failed to map path '/index.html'
Description: HTTP 400.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Web.
Exception stack trace:
at System.Web.HttpRequest.MapPath (System.String virtualPath, System.String baseVirtualDir, System.Boolean allowCrossAppMapping) [0x0014f] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpRequest.MapPath (System.String virtualPath) [0x00015] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.Hosting.HostingEnvironment.MapPath (System.String virtualPath) [0x00042] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.Hosting.DefaultVirtualPathProvider.DirectoryExists (System.String virtualDir) [0x00016] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.Configuration.WebConfigurationManager.FindWebConfig (System.String path, System.Boolean& inAnotherApp) [0x0001f] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, System.Boolean fweb) [0x00026] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x0000d] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x0000d] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpApplication.PreStart () [0x00000] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpApplication.Start (System.Object x) [0x00097] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpApplication.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext context) [0x0001a] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest req) [0x000c5] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00028] in <79d7580b4e46487286a5f8386a98413d>:0
at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest wr) [0x0002b] in <79d7580b4e46487286a5f8386a98413d>:0
at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00011] in <d98bc9fa9fab4f2783035ec590695445>:0
Xubuntu 22.04 Jammy x64
Intel Core i5-13400 (2.5 GHz / 4.6 GHz) - RAM: 16Go
Gigabyte GeForce RTX 3060 WINDFORCE OC 12G - 12Go
Audio: High Definition Audio Realtek
Hors ligne
Pages : 1