m1gin 36

Using xsp4 instead of mod_mono by the help of mod_proxy in apache web server on arch linux.


Step 1:

$ cd /mb/var/www/mbirgin/kit.4yon.org/
$ xsp4 --port=8080


Step 2:

$ sudo nano /etc/httpd/conf/extra/mb_xsp_proxy.conf


LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule ssl_module modules/mod_ssl.so


<VirtualHost *:443>
ServerName myaspnet.local


SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/mbirgin.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mbirgin.com/privkey.pem


# Proxy to xsp4 running on HTTP (localhost:8080)
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

</VirtualHost>


<VirtualHost *:80>
ServerName myaspnet.local
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>


Step 3:

$ curl https://gilgonn.cloudns.org -v -k
$ curl http://gilgonn.cloudns.org -v -k

Add to: