Enable port 80 (and 443) by changing the appropriate settings from N to a Y. They should look like: server.enable-http-on-port-80=Y server.enable-https-on-port-443=Y. Change the server port in all providers installed on your network. The server port is set in the print-provider.conf file in the provider directory. Redirecting port 80 to 443 is trivial with iptables, but from your description you clearly do not want to run http on port 443: You want people to be redirected from http to https.

Apache 80 443 Price
Normally, there are two important sections of a virtual host configurations if an SSL certificate is enabled; the first contains configurations for the non-secure port 80. The second is for the secure port 443. I found that Apache 2.4.10 sets the SERVERPORT environment variable to 443 instead of using the port on which the request came in (80 or 443 depending). Pity, as I was hoping to be able to use this, as I really wanted to keep one file per virtual host. Linux - Allow access to Apache on both port 80 and 443 in Ubuntu 16.04 - Unix & Linux Stack Exchange Allow access to Apache on both port 80 and 443 in Ubuntu 16.04.
Hi!
I need to change port 80 and 443 to something else for Nextcloud (Apache) and I just need to have my own solution confirmed or corrected.
- I change port 443 to 8443 in /etc/apache2/sites-available/default-ssl.conf
- I change port 80 to 880 in /etc/apache2/sites-available/000-default.conf
- I change to ‘overwrite.cli.url’ => https://exampel.ddns.com:8443/nextcloud in /var/www/nextcloud/config/config.php
- Open port 880 and 8443 in my router
My address to my Nextcloud will then be https://exampel.ddns.com:8443/nextcloud
Does this looks right? I know this really is a question about Apache aside from the “‘overwrite.cli.url’ =>”-bit but I hope you could confirm or correct my thinking if I’m very nice
This appendix describes the method of enabling SSL for Apache. The following topics guide you through the necessary steps:
Apache 80 443 Rifle
- Generate the Certification Request
- Modify httpd.conf File to Enable SSL
Generate the Certification Request
Perform the following steps to generate a certificate request:

- Make the following changes to the
openssl.cnf
file to generate the certificate request:Use the commands below to generate the certification request:
When you run the final command, a certificate request is generated. The following is an example of a certification request:
Please enter the following 'extra' attributes to be sent with your certification request:
Be sure to take note of the following:
- These commands create two files:
key.pem
andcsr.pem
(certificate request). - For Common Name, include the FULL name of the HOST and DOMAIN you are running the command on.
- Remember the password you enter. This password is used every time Oracle HTTP Server is started.
- These commands create two files:
- Send the Certification Request. In the CSR area, paste the certification request from
csr.pem
file. - When you receive the certificate, paste it into a file named
portalcert.crt
.Be sure that you get the Root Trial CA certificate by going to the URL mentioned in the Certificate Authority email. Export that certificate from the browser to a file named
rootcacert.crt
. - Copy the following in appropriate directories:
- Certificate file
portalcert.crt
into the...ApacheApacheconfssl.crt
directory. key.pem
file into the...ApacheApacheconfssl.key
directory.- Root Trial CA file
rootcacert.crt
into the...ApacheApacheconfssl.crt
directory.
- Certificate file
Apache 80 443 Magazine
Modify httpd.conf File to Enable SSL
Make the following changes to the httpd.conf
file to enable SSL:
- Port changes: Be sure your entries are similar to the ones in the example below:
- SSL Certificate related entries: For Entry for Certificate, search for
SSLCertificateFile
and make this entry as below pointing to your certificate that came from the certificate authority. This is illustrated in the following example: - Restart Apache.
