Can't configure Apache to serve https on alternate port
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Can't configure Apache to serve https on alternate port
Hi,
I've been running an Apache web server serving on the default http and https ports for over a year now. But there is now another https server on the network whose port can't be configured, so I'm trying to get my server to serve https on an alternate port so that it can be accessed from the Internet.
In /etc/httpd/conf.d/ssl.conf I changed the Listen directive to
Code:
Listen 1184
and restarted httpd. Now when I try to connect with
Code:
lynx https://127.0.0.1:1184/
I get the error
Code:
Looking up 127.0.0.1:1184
Making HTTPS connection to 127.0.0.1:1184
Retrying connection without TLS.
Looking up 127.0.0.1:1184
Making HTTPS connection to 127.0.0.1:1184
Alert!: Unable to make secure connection to remote host.
lynx: Can't access startfile https://127.0.0.1:1184/
nmap gives
Code:
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-10-25 13:35 GMT
Interesting ports on localhost (127.0.0.1):
Not shown: 1674 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
960/tcp open unknown
3306/tcp open mysql
Nmap finished: 1 IP address (1 host up) scanned in 0.130 seconds
There are no virtual hosts defined in my /etc/httpd/conf/httpd.conf
Thanks bathory, I hadn't thought of looking in the logs for errors.
harry edwards, I've disabled the firewall temporarily while I sort this out, so it's not the firewall. Also, I don't know if the firewall blocks access on the local machine anyway.
Wim Sturkenboom, I want this to be accessed from the Internet. All servers on the network can only be accessed by the router's single public IP address, so I need alternate ports to distinguish which one the client is requesting.
The simplest test is to use telnet 127.0.0.1 1184 If it can't connect, check
- firewall was already mentioned and you ruled it out
- hosts.allow and hosts.deny
- apache is not listening on that port
Could you connect using lynx https://127.0.0.1 before the changes? I'm thinking that lynx does not like your certificate as it contains a domain name and 127.0.0.1 does not match that domain name; but I might be wrong.
Last edited by Wim Sturkenboom; 10-28-2009 at 08:10 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.