Home/Forum archive/Change Port Moodle Server Forum archiveChange Port Moodle ServerSupportapachechange port 104/5000 I need to make a query, how can I change port 80 on my Moodle server? help me please Replies (1) Yes it's easy... :) Reply 1 2020-10-12 It's pretty straight forward really. Firstly add the new port to the Apache ports config file. I.e. to use 8443 for HTTPS (instead of 443): echo "Listen 8443" >> /etc/apache2/ports.conf Then edit the Apache moodle.conf file and change where it specifies port 443 and change it to 8443. E.g. edit using nano: nano /etc/apache2/sites-available/moodle.conf And change this line: <VirtualHost *:443> To: <VirtualHost *:8443> Then restart Apache to apply the change: systemctl restart apache2
Yes it's easy... :) Reply 1 2020-10-12 It's pretty straight forward really. Firstly add the new port to the Apache ports config file. I.e. to use 8443 for HTTPS (instead of 443): echo "Listen 8443" >> /etc/apache2/ports.conf Then edit the Apache moodle.conf file and change where it specifies port 443 and change it to 8443. E.g. edit using nano: nano /etc/apache2/sites-available/moodle.conf And change this line: <VirtualHost *:443> To: <VirtualHost *:8443> Then restart Apache to apply the change: systemctl restart apache2
It's pretty straight forward really.
Firstly add the new port to the Apache ports config file. I.e. to use 8443 for HTTPS (instead of 443):
Then edit the Apache moodle.conf file and change where it specifies port 443 and change it to 8443. E.g. edit using nano:
And change this line:
To:
Then restart Apache to apply the change: