Portal Home > Knowledgebase > Articles Database > Unix Plesk: Generate webserver config files


Unix Plesk: Generate webserver config files




Posted by Tomcatf14, 09-04-2007, 06:19 AM
Is there any command to generate it? The httpd.include is there but httpd.conf is not picking it up. Suppose there is a "middle" man to connect the vhosts httpd.include and httpd.conf

Posted by Scott.Mc, 09-06-2007, 11:49 AM
I don't believe plesk has a way to build the httpd.conf However it should be fairly easy to make it pick them up, i'd just do something like for i in `ls /var/www/vhosts`;do echo include /var/www/vhosts/$i/conf/httpd.include;done and chuck that in your httpd.conf (even though it doesn't store the includes there it doesn't matter). Also check /etc/httpd/conf for a backup of httpd.conf theres normally always one or two in there anyway which might save this hassle. Note on the above I didn't test it but I am fairly particular that's the plesk paths, you may have to alter the /conf/httpd.include incase that's not what it's called I actually don't remember.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Primary DNS Server (Views: 654)