SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I've been trying to set set up a server which it will use SSL. I've been having problems getting the mod_rewrite to work. I'm trying to force every connection to a certain directory to be on port 443 (SSL). I wrote a mod-rewrite.conf rule. It doesn't work. I have tried everything that I have found online, but no dice.
I have changed the AllowOverride "None" to "All" before the .htaccess section. The mod_rewrite module also loads correctly.
This is my sample mod-rewrite.conf file:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/my_directory/(.*) https://%{SERVER_NAME}/my_directory/$1 [R,L]
This is the slackware forum but the "mod-rewrite.conf" makes me think you're trying this with Redhat/FC experiences (Slackware does not use separate config files). Try editing httpd.conf instead.
Try
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/my_directory/(.*) https://%{SERVER_NAME}/my_directory/$1 [L,R]
This is the slackware forum but the "mod-rewrite.conf" makes me think you're trying this with Redhat/FC experiences (Slackware does not use separate config files). Try editing httpd.conf instead.
Try
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/my_directory/(.*) https://%{SERVER_NAME}/my_directory/$1 [L,R]
Eric
Thanks Alien Bob! I think that was my problem. Now, is there anywhere specific that I need to insert this part of the code? Or does it matter?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.