Koozali.org: home of the SME Server

htaccess

Offline raem

  • *
  • 3,972
  • +4/-0
Re: htaccess
« Reply #15 on: October 30, 2007, 03:58:53 AM »
AlexG

Did you uninstall the rpm ?
rpm -e e-smith-htaccess

I can only think that you may have inadvertantly added another custom template somewhere and that is causing problems, check the custom template location mentioned in the Howto very carefully.
Also you said earlier you were editing the httpd.conf file. That is not good practise as that file is created from the contents of the templates/dbs. You may have inadvertantly changed something there that is also causing problems.

To "reset" your system, delete any custom templates you have added and then do
signal-event post-upgrade
reboot

Your system should then return to default settings.
Then proceed carefully to create the custom template as per the Howto.


I have also updated the Howto in the Wiki, see
http://wiki.contribs.org/Htaccess
...

Offline AlexG

  • ****
  • 110
  • +0/-0
Re: htaccess
« Reply #16 on: October 30, 2007, 04:15:13 AM »
Hi Ray

Thank you for your kindness. Your Wiki is great and clear. The 'rpm -e e-smith-htaccess' is not installed on my server. Do I have to install it? Please be so kind and write the link in the Wiki and where to download from (the Link in the old howto does not work).

Best regards
AlexG
« Last Edit: October 30, 2007, 04:24:41 AM by AlexG »

Offline raem

  • *
  • 3,972
  • +4/-0
Re: htaccess
« Reply #17 on: October 30, 2007, 04:31:50 AM »
AlexG

You wrote earlier:
Quote
I have a 7.2 SME Version and tried to install the e-smith-htaccess rpm.


I was telling you to uninstall it, in case the earlier install you did was causing problems.

do
man rpm
to see the syntax for the rpm command
ie
rpm -e rpmname
does a removal or uninstall.

...

Offline AlexG

  • ****
  • 110
  • +0/-0
Re: htaccess
« Reply #18 on: October 30, 2007, 07:02:00 AM »
Quote
then do
expand-template /etc/httpd/conf/httpd.conf
sv t /service/httpd-e-smith
It is recommended practice to check that the service has started and is running, so do
sv t /service/httpd-e-smith
[edit] Password file creation
Now you need to create the password file, change to the location you want the password file in

Please correct in the Wiki:
It is recommended practice to check that the service has started and is running, so do
sv t /service/httpd-e-smith  -->  sv s /service/httpd-e-smith

Offline raem

  • *
  • 3,972
  • +4/-0
Re: htaccess
« Reply #19 on: October 30, 2007, 07:40:28 AM »
Fixed
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: htaccess
« Reply #20 on: October 30, 2007, 03:26:35 PM »
AlexG & all

I have further updated the htaccess howto, by adding sections on authenticating against all or some valid sme users, as well as against a user/password file.
See
http://wiki.contribs.org/Htaccess
...

Offline shell

  • ****
  • 117
  • +0/-0
Re: htaccess
« Reply #21 on: October 31, 2007, 02:31:16 AM »
might be of interest - I saw a bit of code (kudos to cactus  8) ) for authenticating against groups using htacess too, although i am not sure how this would integrate - include at the top of the custom template before directives read, maybe then when expanded would be run.  obviously i haven't tried it myself yet- but i can see this would be quite useful implemented.  Will fire a question in that forum to see if cactus will elaborate...

http://forums.contribs.org/index.php?topic=38959.msg177464#msg177464