Running a site on a non-standard port I have a server which I want to run drupal site on it.

The default http port 80 was block and it does not have a static IP address.
I have to run Drupal on non 80 port, let's say 8765.

Since I do not have a static IP, I apply a sub-domain name from noip which is
drupal8.myftp.org.
So finally my domain name should be
drupal8.myftp.org:8765

First, I read the tutorial here

From line 46


  
  Note that if you are installing on a non-standard port number, prefix the
  hostname with that number. For example,
  www.drupal.org:8080/mysite/test/ could be loaded from
  sites/8080.www.drupal.org.mysite.test/.**
  


So In my scenario, I should create a directory like
sites/8765.drupal8.myftp.org/
and put the settings.php here.
Then I also need to create a 8765.drupal8.myftp.org.php file under “sites” directory to tell Drupal to looking for the settings.php within sites/8765.drupal8.myftp.org directory.

I did create the directory and the file.

But Drupal still looking for the settings.php under default directory, why?

Questoin1: what content should be in the 8765.drupal8.myftp.org.php file?
Since I can not find any tutorial about this, I just leave it blank, I assume it's just a symbol to let Drupal know it should look for the settings.php in the  8765.drupal8.myftp.org category.

Question2: Why Drupal doesn't look for the settings.php under 8765.drupal8.myftp.org directory? Do I did sth wrong?

Since I need to add

$base_url=”http://drupal8.myftp.org:8765”

in the settings.php and the file under sites/8765.drupal8.myftp.org directory doesn't work.
So I have to add it to the settings file under default directory.
But still, If I open the site drupal8.myftp.org:8765
and view the source code

&lt;link rel="shortcut icon" href="http://drupal8.myftp.org/core/misc/favicon.ico" type="image/vnd.microsoft.icon" /&gt;
&lt;link rel="alternate" hreflang="en" href="http://drupal8.myftp.org/node/3" /&gt;
&lt;link rel="alternate" hreflang="zh-hans" href="http://drupal8.myftp.org/zh-hans/node/3" /&gt;


We can see all the link are still point to drupal8.myftp.org, 
therefore, all image and css info are gone.

So could anybody give me some instructions, I have be stuck in this for three days, any help is highly appreciated.

Thanks in advance.

@Pathak,

Thank you for your kind reply.

Yes, I create a folder called 8765.drupal8.myftp.org and place settings.php within it. So the path is

sites/8765.drupal8.myftp.org/settings.php


I also create a file call 8765.drupal8.myftp.org.php reference to example.sites.php.

The path is 

sites/8765.drupal8.myftp.org.php


According to example.sites.php


  The array is written in the format: '..' =>
  'directory'. As an example, to map
  www.drupal.org:8080/mysite/test to the configuration directory
  sites/example.com, the array should be defined as:
  
  $sites = array(
      '8080.www.drupal.org.mysite.test' => 'example.com',   );


Then in the 8765.drupal8.myftp.org.php, I write the $sites array as follow;

$sites = array(
    '8765.drupal8.myftp.org' =&gt; '8765.drupal8.myftp.org',
  );


But still, if open the site drupal8.myftp.org:8765, the settings.php under the default directory was read. All links are point to drupal8.myftp.org without the port number.
Could you please point out on which step I was wrong?
All of those instructions only apply if you actually want to have a multi-site installation and e.g. different installations on different ports. Something that most people recommend to not do as it results in maintenance issues sooner or later.

If you just want to have one installation, use sites/default/settings.php and you're good to go.