How to run vibe.d web app in XAMPP server ?

singingbush singingbush at hotmail.com
Mon Jan 15 23:59:37 UTC 2018


On Monday, 15 January 2018 at 06:22:13 UTC, Jayam wrote:
> In our production server, we have only XAMPP for use to deploy 
> web app and mysql combinedly?
> Is there any way how to deploy the vibe.d web app into XAMPP ?

To use Apache to proxy requests to your D app do something along 
these lines:

Configure a Virtual Host for use with the application:

sudo vim /etc/apache2/sites-available/yoursite.conf

using the following content:
<VirtualHost *:80>
     ServerAdmin webmaster at example.com
     ServerName example.com
     ServerAlias www.example.com

     ErrorLog /var/log/apache2/yoursite-error.log
     CustomLog /var/log/apache2/yoursite-access.log common

     ProxyRequests off
     ProxyPreserveHost off
     ProxyPass / http://127.0.0.1:8080
     ProxyPassReverse / http://127.0.0.1:8080

</VirtualHost>

Then make sure to enable the relevant mods and your site

sudo a2enmod proxy proxy_http
sudo a2ensite yoursite

Verfiy the Apache config with apachectl configtest then restart:

sudo systemctl restart apache2


More information about the Digitalmars-d mailing list