How to remove port number from the URL?

268

Change the port number from 90 to 80 to remove it from the URL. The default port number for HTTP is port 80. If you use any other port number, that port number has to be specified in the URL.

Similarly if you use HTTPS (with an SSL certificate) your port number has to be 443 if you don't want the port number to appear in the URL.

For HTTP and HTTPS it is not possible to use any method other than the URL to change the port number. Some newer protocols use SRV DNS records to set the port number, but HTTP and HTTPS do not support that. See Can DNS point to specific port?

If your ISP or hosting company has blocked port 80, you are out of luck. That shouldn't be the case for any VPS though.

If you are running another web server on port 80 already, you will need to combine the two. That can usually be accomplished easily by using reverse proxy from one web server to another.

Share:
268

Related videos on Youtube

user1570730
Author by

user1570730

Updated on September 18, 2022

Comments

  • user1570730
    user1570730 over 1 year

    I got two classes, which implementation contains an array named "geometryCoords", in "Corridor" class it is initialized in declaration, and in "RhombusArray" it is done in the "init" method:

    GLfloat _geometryCoords[]={/*Values here*/};
    

    GLfloat _geometryCoords[];
    ...//In the init method
    _geometryCoords = (GLfloat*)malloc(somevalue);
    for(...){/*Assignment*/}
    

    While debugging this method i noticed that "geometryCoords" has the values of the first class' array before the initialization code is passed. After changing the declaration of array in "RhombusArray" from:

    GLfloat _geometryCoords[];
    

    to

    GLfloat* _geometryCoords;
    

    i got an "Apple Mach-o linker error: duplicate symbol _geometryCoords in /BlaBla/Corridor.o and /BlaBla/RhombusArray.o". Both of those classes' headers are imported to the .mm file and removing one of them solves the conflict. How should i handle this problem?

  • androidpc
    androidpc over 5 years
    woow thanks lot it's working... i change port number 90 to 80..thank you... but some times web site not loding "can't reach web site" error message showing..but in my vps web site working properly.why is that?
  • Stephen Ostermiller
    Stephen Ostermiller over 5 years
    Do you have more than one A record in DNS? If you have an extra second A record it could get used some of the time and cause the problem.
  • androidpc
    androidpc over 5 years
    hmm so how i solved this problem?
  • Stephen Ostermiller
    Stephen Ostermiller over 5 years
    Did you check your DNS records? I'm not sure if that is the issue, but it should be easy to check if there is an extra DNS record.