xsp(1)
πΈ NAME πΈ
xsp β the Mono ASP.NET Web Server, aka xsp and xsp2 π
β¨ SYNOPSIS β¨
xsp [options]
or
mod-mono-server [options]
or
fastcgi-mono-server [options]
π¦ DESCRIPTION π¦
okay so bestie, listen: XSP, mod-mono-server and fastcgi-mono-server are all hosts for ASP.NET-based applications. That's the whole vibe. π
If you run it as xsp, you get a minimalistic web server that hosts the ASP.NET runtime and is perfect for testing and debugging web apps that use the System.Web facilities in Mono. This server is most convenient for testing and running small sites, and lowkey it does not offer everything a production web server offers. It's giving "dev environment," not "serving a million users." π«Ά
mod-mono-server and fastcgi-mono-server are both ASP.NET runtime hosts that can talk to another web server (at the time of this writing, Apache 1.3-2.2 were supported through mod_mono, and several other web servers through FastCGI). This mechanism is better used for high-traffic servers or production systems, since it can integrate with the main HTTP server and leverage all of the optimizations and extensions of an existing server while still providing the ASP.NET runtime. Iconic behavior, honestly. β¨
You get to choose the communication channel used between mod_mono and mod-mono-server. If you pass a --filename option, a unix socket is used; otherwise you can give --port to use a TCP socket. Pick your fighter. π
π OPTIONS π
--address addrβ sets the IP address to listen on. By default it's0.0.0.0for xsp and127.0.0.1for mod-mono-server. AppSettings key name:MonoServerAddress--port PORTβ changes the default port where the XSP server will listen to requests. By default XSP listens on port8080and mod-mono-server has no default. AppSettings key name:MonoServerPort--backlog Nβ the backlog of connections to set on the listener socket. By default the value is set to500.--minThreads Nβ the minimum number of threads the threadpool allocates. Bump this value to better handle the sudden arrival of connections (the group-chat flood, if you will π). The default value is determined by the mono runtime.--filename file(mod-mono-server and fastcgi-mono-server) β the unix socket file name to listen on. Default value:/tmp/mod_mono_server(fastcgi-mono-server:/tmp/fastcgi-mono-server). AppSettings key name:UnixSocketFileName(fastcgi-mono-server:MonoUnixSocket)--root PATHβ the root directory for XSP. The default is the directory where XSP is executed. The current directory will be changed to this one before creating any application. AppSettings key name:MonoServerRootDir--appconfigfile FILENAMEβ adds application definitions from the XML configuration file. See the sample configuration file that comes with the server (sample.webapp) and WEBAPP FILE FORMAT below. AppSettings key name:MonoApplicationsConfigFile--appconfigdir DIRβ adds application definitions from all XML files found in the specified directoryDIR. Files must have the.webappextension. AppSettings key name:MonoApplicationsConfigDir--applications APPSβ a comma separated list of virtual directory and real directory for all the applications we want to manage with this server. The virtual and real dirs are separated by a colon. The default value is/:.'.
Some examples, bestie:
'/:.'β the virtual/is mapped to the current directory.'/blog:../myblog'β the virtual/blogis mapped to../myblog'/blog:../myblog'... okay real talk, the actual example is'/:.,/blog:../myblog'β two applications like the ones above are handled. β¨myhost.someprovider.net:/blog:../myblogβ the virtual/blogatmyhost.someprovider.netis mapped to../myblog.
--masterβ this instance will be used by mod_mono to create ASP.NET applications on demand. If this option is provided, there is no need to provide a list of applications to start. This applies only tomod-mono-server.exe.--nonstopβ by default xsp/mod-mono-server will stop processing requests when the return key is pressed. Use this to avoid this behavior. (No more rage-quitting yourself by accident. π)--no-hiddenβ do not protect hidden files/directories from being accessed by clients. Hidden files/directories are those with the Hidden attribute on Windows, and whose name starts with a dot on Unix. Any file/directory below a hidden directory is inaccessible. This option turns the default behavior of protecting such locations off. If your application does not contain any hidden files/directories, you might want to use this option, since the checking process has a per-request cost. AppSettings key name:MonoServerCheckHiddenFiles(a boolean accepting'true'or'false')--httpsβ enables HTTPS support on the server. You must supply an X.509 certificate and a private key with either the--cert/--pkfileoptions, or with the--p12file(which combines both the certificate and the private key into a single file). π
To use it, you must first create an X.509 certificate for your server, for example:
$ makecert -r -eku 1.3.6.1.5.5.7.3.1 -n "CN=server" -p12 server.p12 s3kr3t
Mono MakeCert - version 1.1.9.0
X.509 Certificate Builder
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2005 Novell. BSD licensed.
Success
Then you must pass the following flags to xsp:
$ xsp --https --p12file server.p12 --pkpwd s3kr3t
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--https-client-acceptβ like--https, this enables HTTPS support on the server. However, this option also sends an "invitation" to clients to provide client-certificates to authenticate themselves. Clients are free to provide, or not, a client certificate. A web application can detect if a client certificate is used and react accordingly. Most web browsers will not send a client certificate unless they have been explicitly requested to do so.
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--https-client-requireβ like--https, this enables HTTPS support on the server. However, this option also requires clients to use client-certificates to authenticate themselves. Clients who do not provide client certificates will receive an error. Note that a client may send an empty certificate structure, so a web application should check the certificate content. π«£
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--p12file FILENAMEβ used to specify the PKCS#12 file to use. This file includes both the X.509 certificate and the private key required to encrypt the HTTP traffic.
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--cert FILENAMEβ used to specify the server X.509 certificate file. This is normally used with the--pkfile.
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--pkfile FILENAMEβ used to specify the path to the private keyfile. The PVK format isn't very secure and you should use the PKCS#12 format (--p12fileoption) to store new private keys. π¨ (Yes bestie, that's a real warning, don't skip it.)
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--pkpwd PASSWORDβ if your private key is password protected,PASSWORDis the password used to decode the private key. This option works for both PVK and PKCS#12 formats.
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--protocol PROTOCOLβ specifies which protocols are available for encrypting the communications. The possible values areDefault,TlsandSsl3.Ssl2isn't supported. The default value is"Default", which auto-detects the client protocol and adjusts the server protocol accordingly.
This option is only valid for XSP. For mod_mono you should configure Apache for SSL/TLS.
--terminate(mod-mono-server only) β gracefully terminates a running mod-mono-server instance. All other options but--filenameor--addressand--portare ignored if this option is provided.--versionβ displays version information and exits.--helpβ shows the list of options and exits.--verboseβ prints extra messages. Useful for debugging. π--pidfile FILEβ writes the xsp PID to the specified file.
π MONO RUNTIME OPTIONS π
xsp and xsp2 are scripts that call mono. If you want to pass options to mono (for example, options to get line numbers in stack traces), you can use the MONO_OPTIONS environment variable when invoking xsp or xsp2.
For example:
$ MONO_OPTIONS=--debug xsp2
π DEFAULT INDEX FILES π
You can choose which files are considered as index using the xsp.exe.config configuration file, like this:
<appSettings>
<add key="MonoServerDefaultIndexFiles"
value="index.aspx" />
</appSettings>
By default, it has index.aspx, Default.aspx, default.aspx, index.html and index.htm. The order matters. β
π§ WEBAPP FILE FORMAT π§
The format of the .webapp files used for --appconfigfile and --appconfigdir is:
<apps>
<web-application>
<name>{appname}</name>
<vhost>{virtual host for application}</vhost>
<vport>{port for the application}</vport>
<vpath>{virtual directory in apache}</vpath>
<path>{physical path to aspx files}</path>
<!-- <enabled> is true by default -->
<enabled>{true|false}</enabled>
</web-application>
</apps>
You can include any number of <web-application> nodes, one per ASP.NET application to run. Slay, one node per app. π
There's a sample.webapp file in the XSP samples directory.
π AUTHORS π
The Mono XSP server was written by Gonzalo Paniagua Javier (gonzalo@ximian.com). Fastcgi-mono-server was written by Brian Nickel <http://kerrick.wordpress.com>.
πΈ ENVIRONMENT VARIABLES πΈ
MONO_ASPNET_NODELETEβ if set to any value, temporary source files generated by ASP.NET support classes will not be removed. They will be kept in the user's temporary directory. (No take-backs, no cleanup. π«Ά)
π FILES π
Web.config,web.configβ ASP.NET applications are configured through these files, and the configuration is done on a per-directory basis. For more information on this subject see thehttp://www.mono-project.com/Config_system.webpage.
π SEE ALSO π
okay bestie, when you're done here, go peek at the rest of the fam:
mono(1)β the whole runtime, the main character tbh πdbsessmgr(1)β session manager duties, very demureasp-state(1)β state, but make it a whole daemonmod_mono(8)β the Apache module moment, section 8 coremakecert(1)β for when you need a certificate fr fr
wanna know more about creating certificates? there's a whole writeup, go read it:
http://pages.infinit.net/ctech/20050701-1048.html
also these namespaces are literally right there in the codebase, lowkey iconic:
System.WebSystem.Web.Hosting
and if you want the official ASP.NET lore, http://www.asp.net is Microsoft's official site for ASP.NET. no cap. π
π MORE INFORMATION π
so the Mono project lives at http://www.go-mono.com β it's a collaborative effort led by Novell (http://www.novell.com) to implement an open source version of the .NET Framework. yeah. that's the whole vibe. a bunch of people, one big dream, open source everything. obsessed actually π«Ά
π MAILING LISTS π
all the mailing lists are listed at:
http://www.mono-project.com/Mailing_Lists
go join one bestie, the group chat is right there π
and that's the whole page, we made it!! πβ¨ this was xsp 4.7.1, dated 21 Nov 2004 β yes she's an elder but she's still serving. go run something, ily, bye ππ
π¦ where this page comes from
- fedora 43: xsp 4.7.1-13.fc43 Β· MIT
- fedora 43: xsp 4.7.1-13.fc43 Β· MIT
- fedora 44: xsp 4.7.1-14.fc44 Β· MIT
- fedora 44: xsp 4.7.1-14.fc44 Β· MIT
- Copyright 2003 Ximian, Inc
- Copyright 2004-2007 Novell, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms