Home/Forum archive/Change Port Moodle ServerForum archiveChange Port Moodle ServerSupportapachechange port104/5000I need to make a query, how can I change port 80 on my Moodle server? help me pleaseReplies (1)Yes it's easy... :)Reply 1 2020-10-12It'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.confAnd 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-12It'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.confAnd 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: