Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: nald on January 20, 2005, 09:04:43 AM
-
I installed SME 6.0 for my web-server. I place all my html files inside /ibays/nisico/html. I went to server-manager->configuration->domains and i modify my default domain content into nisico ibay.
I also modify the /etc/httpd/conf/httpd.conf. Below is my correct configuration.
<VirtualHost 0.0.0.0:443>
ServerName www.nisicooptical.com
ServerAlias nisicooptical.com web-nisico.nisicooptical.com
DocumentRoot /home/e-smith/files/ibays/nisico/html/catalog
ScriptAlias /cgi-bin /home/e-smith/files/ibays/nisico/cgi-bin
Alias /files /home/e-smith/files/ibays/nisico/files
However, there comes a time that the /etc/httpd/conf/httpd.conf will go back to its default configuration without touching anything the configuration.
Below is the default configuration:
<VirtualHost 0.0.0.0:443>
ServerName www.nisicooptical.com
ServerAlias nisicooptical.com web-nisico.nisicooptical.com
DocumentRoot /home/e-smith/files/ibays/Primary/html/catalog
ScriptAlias /cgi-bin /home/e-smith/files/ibays/Primary/cgi-bin
Alias /files /home/e-smith/files/ibays/Primary/files
I don't have any idea how come it goes back to its default config. Please help me if somebody knows why it works that way. Thanks...
Nald
-
Firstly, you do understand that SME is a templated system where the config files are created/regenerated by the system itself!
Due to this feature modifying the ACTUAL conf files is fine for a temporary measure to test something but if you want that change to be permanent then it is necessary to delve into the templates.
SME has two templates trees that are relevant to this issue: /etc/e-smith/templates & /etc/e-smith/templates/custom
If a change is required then you copy the standard template from the first location to the second (maintaining the directory structure); edit the copied version of the file and regen the related template.
You need to look at the docs a bit to get a handle on the commands & stuff & then look in /etc/e-smith/templates/etc/httpd/conf/httpd.conf for the file 50DocRoot.
HTH
-
smghead,
My previous problem came back. I edited already the file 50DocRoot under /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
Is there anything i need to configure?
-
.. if you run:
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
and check the file then:
a) check the file date & time to make sure its been updated from the expand-template routine, then
b) check to see if the contents are correct or faulty
c) if faulty check for any other custom template fragments that may be interfering