Page 1 of 1

Change standard wed port

Posted: 13 Mar 2014 16:19
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

Re: Change standard wed port

Posted: 14 Mar 2014 15:01
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.

Re: Change standard wed port

Posted: 14 Mar 2014 15:07
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