According to this question:
Lightweight web application server for PHP?
The above question was asked several times and answered exactly the same in all cases that I found using Google. My question is similar to a degree, but with a different desired purpose: development instances on demand.
I came up with a somewhat dubious solution for placing arbitrary directories in my user account for development testing purposes. I'm not interested in custom vhosts, but I want to emulate the behavior that I get when using paster or mongrel for Python and Ruby respectively.
Ubuntu 9.10 TOXIC @ ~ / "> APACHE_RUN_USER = $ USER APACHE_RUN_GROUP = www-data apache2 -d ~ / Desktop / -c" Listen 2990 "
Is there a better solution, can I do something similar with nginix or lighttpd?
Note: The above will not work correctly for the stock environment without the copied and modified httpd.conf.
Update: The ideal goal is to mimic Paster, Webbrick, and Mongrel for fast local hosting development. For these lightweight servers, it takes less than a minute to start a working instance (without taking into account any database support). Apache2 vhost is fine, but I've been using Apache2 for over ten years now and it will be a kind of nasty thing to set up a new entry in / etc / hosts if you don’t have your own DNS, in which case setting up a wildcard subdomain will probably work fine . EXCEPT yet another problem, it's pretty easy for me to find out what is being hosted (like paster or mongeral) just by doing sudo netstat -tulpn, while there will be a good chance of confusion in determining what vhost is.