Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Yeehaa 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
-
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.
-
I would like to change VirtualHosts part for one of my Ibays
-
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
-
Right.
After that I would like to change aliases, rewrites, Directory, php and etc.
-
Maybe instead of using ibays you want to use SME Site Maker (http://wiki.contribs.org/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.
-
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.
-
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