Results 1 to 2 of 2
-
09-04-2007, 06:19 AM #1Web Hosting Master
- Join Date
- Jul 2005
- Posts
- 598
Unix Plesk: Generate webserver config files
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
-
09-06-2007, 11:49 AM #2Engineer
- Join Date
- Jan 2005
- Location
- Scotland, UK
- Posts
- 2,681
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 certain 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.Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com