Koozali.org: home of the SME Server

customize httpd.conf on SME 7.5.1

Offline Yeehaa

  • *
  • 6
  • +0/-0
customize httpd.conf on SME 7.5.1
« on: March 07, 2012, 07:23:33 PM »
Hello!

I'd like to customize httpd.conf for just one ibay (I have them several), but, as I see, at the moment all the ibay have the same common configuration. I want to customize httpd.conf for one ibay, leaving all the other and new ibay as they are.

What would you recommend?

Regards,
Yeehaa

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #1 on: March 08, 2012, 01:25:05 PM »
What customizations are you trying to make?

There are several changes you can make on an ibay-by-ibay basis using db variables (AllowOverride, PHPBaseDir, FollowSymLinks, Indexes, PHPRegisterGlobals).

If the change you want isn't listed, one option would be to create a custom version of /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays and add the code to read your setting from the db - then set the setting you need in the db for the ibay you want to customize.

Offline Yeehaa

  • *
  • 6
  • +0/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #2 on: March 08, 2012, 01:28:14 PM »
I would like to change VirtualHosts part for one of my Ibays

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #3 on: March 08, 2012, 01:33:50 PM »
You can point any 'domain' at an ibay - which affects the 'virtualhost' settings.

- Create the ibay you plan to use
- Create the domain in server-manager
- Specify the desired ibay in the 'content' field.

It looks like the httpd.conf output is controlled by /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent

Offline Yeehaa

  • *
  • 6
  • +0/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #4 on: March 08, 2012, 01:39:06 PM »
Right.

After that I would like to change aliases, rewrites, Directory, php and etc.

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #5 on: March 09, 2012, 12:14:36 PM »
Maybe instead of using ibays you want to use SME Site Maker.

SME Site Maker was developed a while back to provide the ability to create a web space that was not also shared using FTP and Samba as ibays are.  Each web space is created in a folder underneath /opt (instead of in /home/e-smith/files/ibays), and is controlled using a single custom template fragment.  You are also offered the opportunity to create a database associated with the web space when you run the setup script.



Offline Yeehaa

  • *
  • 6
  • +0/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #6 on: March 09, 2012, 12:20:24 PM »
Thanks!

I have a ready to run web page, but I must change httpd.conf for those changes:
in VirtualHost *:80 part aliases, rewrite logs, Directory part, some php changes, and error log. Thats all.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: customize httpd.conf on SME 7.5.1
« Reply #7 on: March 09, 2012, 12:36:11 PM »
Thanks!

I have a ready to run web page, but I must change httpd.conf for those changes:
in VirtualHost *:80 part aliases, rewrite logs, Directory part, some php changes, and error log. Thats all.

you have 2 options:
- follow mmccarn's advice and move your site from the ibay to a folder in /opt using (for example) SME site maker
- create one or more custom fragments with custom db variables.. to learn how to do it, please read the developers' manual

tertium non datur
« Last Edit: March 09, 2012, 12:37:54 PM by Stefano »