[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Forcing SSL for one directory on site



>After a great deal of research, I found answers that worked for me.
>
>We want to require that users from the internet access the files
>in a particular directory on our site only by https.  In other words,
>they cannot use http: to get access.
>
>Carrie Bartkowiak was correct in that the file that needs to be
>altered is httpd.conf.
>
>On our RAQ4 the file is located  /etc/httpd/conf.
>
>After su to root and opening the httpd.conf in pico, I made
>the following changes after moving down past all other entries
>in the file:
>
><Directory /home/sites/site1/web/nameofdirectory>
>RewriteEngine                on
>RewriteCond                   %{HTTPS} !on
>RewriteRule                    .* - [F]
></Directory>
>
>You need to reboot the server.

I believe you can just restart httpd not the entire server, after
changes are made to httpd.conf file.

/etc/rc.d/init.d/httpd restart