Premises:
- That a Perl-enable environment on the PC with a 'myexample' folder - which, via an FTP client (eg.FileZilla), is synchronized with the 'myexample' folder on the server.
- Both PC and Server have tested, via http on port:5000 by running the command [plackup -p 5000 bin/app.psgi] within its main directory (myexample/) then visit localhost:5000 or http://[MySeverIP]:5000
- That the service; myexample.service is actively serving port:8080
- [Optional]Nginx Webserver is serving iRedmail app, http://[MySeverIP]/mail
Assumption: Apache2 installed and active such it shows its default page at http://[MySeverIP]
Ex2a: Apache2-Native-Perl-Configuration (Preferred)
Requires: mod_perl plus Plack::Handler::Apache2
Via Webmin: Servers->Apache2, create a new host use the following configuration provided here: Apache2-Dancer2-Config-Plack.txt
Thereafter open the browser with http://myexample.com. Your 3-page Dancer website should appear.
Reference: Dancer2-Deployment
Secondly, replace the contents of the index.html found at /var/www/htm/ with the following this text: port80-referral-port443.txt (using your own domain). Thereafter all links to your domain will call on port 443 and will render the website.
Via Webmin: Servers->Nginx->Existing Virtual Host and disable the two default hosts. Create this third host: myexample.com.conf
Restart Nginx and thereafter iRedmail apps can be accessed at http://[MySeverIP]or myexample:8443/mail or /iredadmin
Dancer2 | Dancer-PartB |
Dancer-Deploy | Dancer-Extras |