I am running lighttpd on Debian. Is there a way I can place my virtual host designations outside of the /etc/lighttpd/lighttpd.conf file? I want to try for a cleaner approach, as my file is getting a bit long.
You can split lighttpd vhost on multiple file as in apache..
For example you want to add two vhost configuration in two separate file, first you need to include this file in default /etc/lighttpd/lighttpd.conf :
1)At the bottom of the file, add:
2)Open /etc/lighttpd/domain1.com.conf file:
Add following configuration directive:
Save and close the file.
repeat the same action for other domain2.net.conf, and so on ...