Koozali.org: home of the SME Server

httpd.conf

Offline calisun

  • *
  • 620
  • +0/-1
httpd.conf
« 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:

Code: [Select]
<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)

Code: [Select]
<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
« Last Edit: October 25, 2012, 01:26:35 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: httpd.conf
« Reply #1 on: October 25, 2012, 04:45:28 AM »
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>

Offline calisun

  • *
  • 620
  • +0/-1
Re: httpd.conf
« Reply #2 on: October 26, 2012, 08:11:19 AM »
Thank you mmccarn, I will see if I can figure this out.
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline calisun

  • *
  • 620
  • +0/-1
Re: httpd.conf
« Reply #3 on: December 16, 2012, 08:21:08 AM »
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
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
Re: httpd.conf
« Reply #4 on: December 21, 2012, 12:57:35 AM »
thanks for updating your work.

James

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: httpd.conf
« Reply #5 on: December 21, 2012, 02:41:37 AM »
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.
--
qui scribit bis legit

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: httpd.conf
« Reply #6 on: December 21, 2012, 04:56:17 AM »
TerryF & Calisun

Quote
...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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: httpd.conf
« Reply #7 on: December 21, 2012, 05:22:36 AM »
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..
--
qui scribit bis legit

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: httpd.conf
« Reply #8 on: December 21, 2012, 05:48:06 AM »
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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.