Using mono with ssl in apache -


i have following problem:

i want access mono application via ssl. want not accessible without ssl.

i using apache2.4 , mod-mono-server4.exe 3.0.0.0

at moment have working configuration this:

<virtualhost *:80>      documentroot /srv/www/htdocs/my-mono-app      #sslengine on     #sslcertificatefile   /path/to/key.pem     #sslcertificatekeyfile /path/to/key.pem      monoautoapplication disabled      monoserverpath my-mono-app "/usr/bin/mod-mono-server4"      monoapplications my-mono-app "/my-mono-app:/srv/www/htdocs/my-mono-app"      <directory /srv/www/htdocs/my-mono-app>         require granted         monosetserveralias my-mono-app         sethandler mono     </directory> </virtualhost> 

but turn sslengine on , change port 443 not work anymore. says: object not found! if navigate address.

it not record errors in logs.

can me please?

ps: here complete not working configuration:

<virtualhost *:443>      documentroot /srv/www/htdocs/my-mono-app      sslengine on     sslcertificatefile   /path/to/key.pem     sslcertificatekeyfile /path/to/key.pem      monoautoapplication disabled      monoserverpath my-mono-app "/usr/bin/mod-mono-server4"      monoapplications my-mono-app "/my-mono-app:/srv/www/htdocs/my-mono-app"      <directory /srv/www/htdocs/my-mono-app>         require granted         monosetserveralias my-mono-app         sethandler mono     </directory> </virtualhost> 

i used mono 5.x once. experience can recall, mod_mono.conf needed modification directory path. reached solution apache access , error logs. tried many ways before searching whole earth - symlinking, purge installation , building source etc. may try way keeping backup of mod_mono.conf.

<ifmodule !mono_module>     loadmodule mono_module "libexec/apache2/mod_mono.so" </ifmodule>  <ifmodule mono_module>     addtype application/x-asp-net .config .cs .csproj .dll .resources .resx .sln .vb .vbproj     addtype application/x-asp-net .asax .ascx .ashx .asmx .aspx .axd .browser .licx .master .rem .sitemap .skin .soap .webinfo      monoautoapplication enabled     monodebug true     monoserverpath "/usr/bin/mod-mono-server4"     monosetenv lang=fr_fr.utf-8     monounixsocket "/tmp/.mod_mono"      <ifmodule dir_module>         directoryindex default.aspx     </ifmodule>      <directorymatch "/(bin|app_code|app_data|app_globalresources|app_localresources)/">         order deny,allow         deny     </directorymatch>      <location "/my-mono-app">         order deny,allow         deny         allow 127.0.0.1 ::1         sethandler mono-ctrl     </location> </ifmodule> 

it bigger write comment, possibly not 100% warranted answer, depends on try. thing in config correct :

require granted monosetserveralias my-mono-app sethandler mono 

without stanza odd errors appear.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -