For a school project I can pick any Framework I like to create a fairly simple website. I picked Mojolicious because I like Perl.
I'm also asked to pick among three webservers: Nginx, Apache or Lighttpd. I have used Apache in the past for a PHP school project.
I'm totally lost regarding Mojolicious. The way I understand it I could totally not use any of those webservers because I have Morbo / Hypnotoad? I still have to use a webserver anyway because it's one of the rules so which one would be simpler to configure and most efficient with Mojolicious in mind?
Thank you for any help,
I am using apache as a proxy for hypnotoad. Works fine, since this way I can use hypnotoad to hotdeploy changes.
My configuration in apaches sites-available
is:
<VirtualHost *:8080>
ServerAdmin webmaster@example.com
ServerName myhost.example.com
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:3233/ keepalive=On
ProxyPassReverse / http://localhost:3233/
RequestHeader set X-Forwarded-Proto "http"
ErrorLog /var/log/apache2/error.log
# debug, info, notice, warn, error, crit, alert, emerg
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
You may also find this link helpful: