Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: calisun on October 25, 2012, 01:21:26 AM
-
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:
<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
To This: (have a wildcard subdomains and comment out Alias /files for ALL my domains)
<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
Thank you in advance
-
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>
-
Thank you mmccarn, I will see if I can figure this out.
-
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 (http://wiki.contribs.org/User_talk:Calisun)
-
thanks for updating your work.
James
-
I hope you don't mind but I have raised a bug to create a How To, Install Worpress to an iBay, using your instructions and to add a link in the contrib to the How To.
-
TerryF & Calisun
...I have raised a bug to create a How To, Install Worpress to an iBay, using your instructions and to add a link in the contrib to the How To.
Calisun is a Doc team member, so could have just as easily posted his work directly to the wiki as an addition to the existing Howto or as a new Howto. No real need for a bug report as anyone can become a member of the Doc team (upon request) and edit the wiki & create new articles.
Just get in and do it !
Calisun, you should just post your work to a new or existing Howto, rather than save it "hidden" to some degree in your Talk page.
I think you can move the existing material, but I would have to check this. I know you can move existing Howtos to newly named wiki pages.
Otherwise cut & paste is still very easy to do.
Your opening comments about access rights & Group ownership of ibays is a little bit incorrect.
You should give ownership of the ibay to a Group to which all other users do not belong, except for the sysadmin or site maintainer.
This is not regarding web access to anyone, as other ibay settings determine if the site is web accessible or not.
I am busy just now to do anything more on this, so later.
-
TerryF & Calisun
Calisun is a Doc team member, so could have just as easily posted his work directly to the wiki as an addition to the existing Howto or as a new Howto. No real need for a bug report as anyone can become a member of the Doc team (upon request) and edit the wiki & create new articles.
Just get in and do it !
Of course you are right mary, No disrepect to calisun, however having just cleared over 30 documentation bugs that go back as far as 2005, some of them haveing had nil done for years!! even though the solution was in the bug comments, did not fill me with confidence that this very good peice of work would not become lost to the gen user, get it into a How To and protected and it is there forever and open for all to add to etc.
Of course if what I suggested is inappropriate only to happy to see the bug deleted as a waste of time..
-
TerryF
No, your action was not inappropriate at all. It is the right thing to do to have a prompt or reminder ( bug report) in the system to do something about the matter. I just thought Calisun could have just as easily published his work directly to the wiki, maybe called it a Draft version or something like that if he felt it was not yet finished, & let others make corrections if necessary.
Everyone works in their own way, so all approaches are OK, as long as it ends up with a published document rather than a "lost" document.