Hosting a number of websites on a single VPS using both technologies is possible. However, you will need to manually configure them by root accessing your server.