0
Answered

Custom HTTP port (Port forwarding)

catsama 3 years ago updated 3 years ago 4

I used port 7777 for my website.

Now I want to use 443, but once I changed the port from 7777 to 443,and try to login my filerun with the same domian's 443 port,I can't login my filerun.


It seems like the request is still sending to the port 7777,

how to fix this?

Answer

+1
Answer
Answered

So you haven't changed the HTTP server's port, but you are using a port forwarding.

Given that the HTTP server hosting FileRun does not know the port number used by the end user, you will have to manually specify it. You do so by editing the file "customizables/config.php" (create if not exists) so that it looks like this:

<?php
$config['url']['root'] = 'https://www.your-website.com/filerun-folder/';

Replace the URL with what you actually use to access FileRun from outside the local network.

Under review

Are you sure you changed the port of the actual HTTP server serving FileRun, and not by accessing through a reverse proxy?

no...



because port 443 on my LAN was used by other service

+1
Answer
Answered

So you haven't changed the HTTP server's port, but you are using a port forwarding.

Given that the HTTP server hosting FileRun does not know the port number used by the end user, you will have to manually specify it. You do so by editing the file "customizables/config.php" (create if not exists) so that it looks like this:

<?php
$config['url']['root'] = 'https://www.your-website.com/filerun-folder/';

Replace the URL with what you actually use to access FileRun from outside the local network.