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.
I just got a web server up and running with my work Slackware 9.1 machine and am having some problems getting https working with it. When I used Fedora, it pretty much worked "out of the box", so I haven't had much experience setting it up. I am guessing that I am getting a "connection refused" error when trying to connect to https://<myip> b/c I dont have a self signed certificate set up on my machine. Can anyone point me to some slackware documentation or explain it so that I can get this up and running? Thanks for all the help in advance
Is the server even running? You can get that message if the service isn't running. To start, open up a terminal and log in as root and then go to the /etc/rc.d directory. You should have an rc.httpd script there. Is it executable? ls -l rc.httpd will tell you. If there are no x's then it isn't. To make it executable type chmod +x rc.httpd. This will make it executable and will ensure that your web server starts the next time you reboot your box. You can then start/stop/restart the service. To do this you issue this command in a terminal as root:
/etc/rc.d/rc.httpd commandname
where commandname is either start stop or restart. Issue a restart and see if it tells you if the service started. If is successfully started you should see this output
The server is running as I can connect to http://localhost or http://<ipaddress>. I know that is all fine and working, the service starts at bootup. When I try the https command on localhost or with the ipaddress, I get a "the connection was refused when trying to connect to localhost".
Oops. Didn't catch the s in the https. A quick google search on apache ssl slackware came up with an article on this site. Within that article is this link:
I followed the instructions and created the private and public key files and certificate. I am still getting the connection was refused error. Anyone have any ideas what it could be?
It isnt listening on that port (I didnt even think to look). Nmap shows nothing on 443. I think it should be though, http is running and here is out of my mod_ssl.conf file:
##
## SSL Support
##
## When we also provide SSL we have to listen to the
## standard HTTP port (see above) and to the HTTPS port
##
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
On my box it is the very last set of lines. Look for the section "mod_ssl configuration setings". Uncomment the Include /etc/apache/mod_ssl.conf line. That should do it.
I didn't think about the logs either until I spent 20 minutes on an apache issue this morning and a coworker asked "Did you check the logs?". Doh.
Well, I setup one of my new boxes according to the directions given so far and got the same 'Connection refused' error as you. I did some more digging and found out that the default /etc/rc.d/rc.httpd script uses /usr/sbin/apachectl start. To get the server to come up in SSL mode you use /usr/sbin/apachectl-mod_ssl. So this is how you get ssl mode going:
apachectl-mod_ssl startssl
So to summarize:
1. Generate a server.key, server.csr, and server.crt file. Copy those into the ssl.key, ssl.csr, and ssl.crt subdirectories respectively in /etc/apache/ .
2. Uncomment the Include line in /etc/apache/httpd.conf that includes the mod_ssl.conf file
3. Change the line in /etc/rc.d/rc.httpd from
/usr/sbin/apachectl start
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.