From proof-of-concept to production, AxonASP 2.1 provides practical deployment paths with Docker, native build scripts, reverse proxy mode, and FastCGI support.
Choose the deployment mode that best fits your platform and operations flow. The steps below are optimized for quick adoption and predictable production behavior.
With Docker and Docker Compose installed, run:
# 1. Clone the repository git clone https://github.com/guimaraeslucas/axonasp.git # 2. Enter the directory cd axonasp # 3. Start services in detached mode docker-compose up -d
The container setup serves the /www/ directory and exposes AxonASP through port
8801.
For direct host execution, use Go 1.26+ and run the provided build scripts.
.\build.ps1
./build.sh
axonasp-http)Run AxonASP HTTP directly and put Nginx or Apache in front for TLS, static assets, and edge controls.
axonasp-fastcgi)Integrate directly with the web server through FastCGI for low-overhead ASP handling.
server {
listen 80;
server_name myapp.local;
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
root /var/www/axonasp/www;
}
location / {
proxy_pass http://127.0.0.1:8801;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
server {
listen 80;
server_name myapp.local;
root /var/www/axonasp/www;
location ~ \.asp$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
}
<VirtualHost *:80>
ServerName myapp.local
DocumentRoot "/var/www/axonasp/www"
ProxyPassMatch "^/(.*\.jpg|png|css|js)$" "!"
ProxyPass / http://127.0.0.1:8801/
ProxyPassReverse / http://127.0.0.1:8801/
</VirtualHost>
<VirtualHost *:80>
ServerName myapp.local
DocumentRoot "/var/www/axonasp/www"
<FilesMatch "\.asp$">
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</VirtualHost>
Use axonasp.toml and optional .env values to manage ports, runtime
behavior, and environment-specific overrides.