Obsolete Releases > SME 8.x Contribs
httpd.conf
calisun:
Does anybody know where is the template that is used to generate httpd.conf ?
I know that I can create a custom template for httpd.conf, but I have over 50 domains and I don't want to create 50 different custom templates for all my domains.
I am hoping that I could create a one custom template for initial creation of https.conf so all my domains would have the same properties.
Basically what I need is to change this:
--- Code: ---<VirtualHost 0.0.0.0:80>
ServerName domain.com
ServerAlias ftp.domain.com home.domain.com mail.domain.com proxy.domain.com wpad.domain.com www.domain.com x.domain.com
DocumentRoot /home/e-smith/files/ibays/ibay/html
ScriptAlias /cgi-bin /home/e-smith/files/ibays/ibay/cgi-bin
Alias /files /home/e-smith/files/ibays/ibay/files
--- End code ---
To This: (have a wildcard subdomains and comment out Alias /files for ALL my domains)
--- Code: ---<VirtualHost 0.0.0.0:80>
ServerName domain.com
ServerAlias *.domain.com
DocumentRoot /home/e-smith/files/ibays/ibay/html
ScriptAlias /cgi-bin /home/e-smith/files/ibays/ibay/cgi-bin
# Alias /files /home/e-smith/files/ibays/ibay/files
--- End code ---
Thank you in advance
mmccarn:
The original per-domain fragments are here:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts
If you create ".../template-custom/..." versions of these it will probably work.
Or, from looking at this file:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts
it appears that you can create your own virtual host templates, and specify the path to your version with a db setting:
db domains setprop <domain> TemplatePath <mypath>
calisun:
Thank you mmccarn, I will see if I can figure this out.
calisun:
Thank you for your help, I got it figured out.
I have updated my step-by-step how-to for installing wordpress in an iBay.
I believe I made it clearer than before and I gave instructions on creating custom templates to fix couple of issues.
see it here:
http://wiki.contribs.org/User_talk:Calisun
jameswilson:
thanks for updating your work.
James
Navigation
[0] Message Index
[#] Next page
Go to full version