Change standard wed port

Questions and answers about how to do stuff
Post Reply
tasone
Posts: 8
Joined: 13 Mar 2014 16:17

Change standard wed port

Post by tasone »

Hello

Quick question, how do you change the normal standard web port form 80?

ie, you access the server by http://[serveraddress]

I would like to be able to access this by http://[serveraddress]:8080

how do you change to port?

Thanks

Andrew
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Change standard wed port

Post by darky83 »

I have not tested this but you will need to do a few things:

1) Edit apache config file (/etc/httpd/conf/httpd.conf) and change the Listen port to 8080 and restart apache
2) Edit the report files (/etc/MailScanner/reports/en/*) you will see that in a bunch of files there the variable $hostname is used, you should change this to reflect the new URL with the port in all the files
3) edit the QUARANTINE_REPORT_HOSTURL in the mailwatch config (/var/www/html/mailscanner/conf.php)

I believe that should be it.
Version eFa 4.x now available!
tasone
Posts: 8
Joined: 13 Mar 2014 16:17

Re: Change standard wed port

Post by tasone »

Hi

Thanks

I was hoping for a easier way!

I will look into this

Thanks for the information on how to do this.

Andrew
Post Reply