I have already read the suggestions of the previous posts regarding this problem but they do not solve my case. I have to move the listening port of nginx or apache 2.4 web servers to port 8080 because I can't run a php json file (it work in other web host like altervista).
I also installed nodeJs which does not link with port 80 of web servers (nginx and apache). If I move the nodejs port to 80, I know it's not a nice thing to do. But on my synology nas I have already tried to migrate the web server ports from 80 to 8080 but I can't view the site anymore.
On my Synology nas I have set the reverse proxy to not write the port number on the address:
source: https://hostname.synology.me:443
destination: http://192.168.1.217:80
so when i type https://hostname.synology.me i have my index web page!!!
The following is the map of the configuration files (different from that of the other linux distributions)
on apache2.4:
/usr/local/etc/apache24/conf/ file: httpd24.conf Listen 127.0.0.1:915 (change here port to 8080)/usr/local/etc/apache24/conf/extra/ file: httpd-vhosts.conf
(change here port to 8080) restart pkgctl-WebStation
status pkgctl-WebStation
On Nginx:
/etc/nginx/ file: nginx.conf and file: nginx.conf.default linten 8080; and listen [::]:8080;
/usr/bin/iptables/ file: iptables
add line:-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT /usr/sbin/iptables/ file: iptables
and insert follow line: -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPTvi /etc/sysconfig/iptables
and insert follow line: -A INPUT -m state --state NEW -m tcp -p tcp --dport 81 -j ACCEPTrestart nginx netstat -tlpn| grep nginx (system see me restart: invalid option: -t)
Follow solutions not work:
A)For ngincs if i modify nginx.conf and restart webserver, the system delete my modifinations in nginx.conf (owerwrite file to original status)
B)For apache if i change httpd24.conf and set 8080; and change httpd-vhosts.conf to 8080 port, website in NOT displayed
Thank you for Your help and I invite you to suggest solutions to edit file and folder names that really exist in Synology's linux system,indicating exactly the configurations to be made otherwise we can't solve the problem!
Leo.