Skip to main content
Grammar, capitalization
Source Link
Stephen Ostermiller
  • 99.9k
  • 18
  • 145
  • 364

how How to remove port number from urlthe URL?

iI need a help for the remove port number from the urlURL. iI host a site on VPS using xampp virtual host. all areEverything is working perfectly,but cant access domain without port number EX: www.abc.com:90 thisEX:

www.example.com:90

This URL is url working but iI need to remove this port number correct url. The correct URL should be like this Ex: www.abc.com:

www.example.com

thisHere is my xampp vhost file code

<VirtualHost *:90>
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot "C:\xampp\htdocs\abc.com\public"
ErrorLog "logs/abc.com-error.log"
CustomLog "logs/abc.com-access.log" common
<Directory "C:\xampp\htdocs\abc.com">
    Require all granted
Order allow,deny
Allow from all
  </Directory>

how to remove port number from url

i need a help for the remove port number from the url. i host a site on VPS using xampp virtual host. all are working perfectly,but cant access domain without port number EX: www.abc.com:90 this is url working but i need to remove this port number correct url should be like this Ex: www.abc.com

this is my xampp vhost file code

<VirtualHost *:90>
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot "C:\xampp\htdocs\abc.com\public"
ErrorLog "logs/abc.com-error.log"
CustomLog "logs/abc.com-access.log" common
<Directory "C:\xampp\htdocs\abc.com">
    Require all granted
Order allow,deny
Allow from all
  </Directory>

How to remove port number from the URL?

I need a help for the remove port number from the URL. I host a site on VPS using xampp virtual host. Everything is working perfectly,but cant access domain without port number EX:

www.example.com:90

This URL is working but I need to remove this port number. The correct URL should be:

www.example.com

Here is my xampp vhost file code

<VirtualHost *:90>
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot "C:\xampp\htdocs\abc.com\public"
ErrorLog "logs/abc.com-error.log"
CustomLog "logs/abc.com-access.log" common
<Directory "C:\xampp\htdocs\abc.com">
    Require all granted
Order allow,deny
Allow from all
  </Directory>
Source Link
androidpc
  • 41
  • 1
  • 1
  • 3

how to remove port number from url

i need a help for the remove port number from the url. i host a site on VPS using xampp virtual host. all are working perfectly,but cant access domain without port number EX: www.abc.com:90 this is url working but i need to remove this port number correct url should be like this Ex: www.abc.com

this is my xampp vhost file code

<VirtualHost *:90>
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot "C:\xampp\htdocs\abc.com\public"
ErrorLog "logs/abc.com-error.log"
CustomLog "logs/abc.com-access.log" common
<Directory "C:\xampp\htdocs\abc.com">
    Require all granted
Order allow,deny
Allow from all
  </Directory>