• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

remove port number from web application during redirect

Hi,

I need to redirect my wepage of an application from http to https without providing the port number in apache.

Currently i have done like below
<VirtualHost *:80>
      Redirect /hello.html https://xxx.xx.xx.xxx:448/contact_us.html
</VirtualHost>

but i need something like

<VirtualHost *:80>
      Redirect /hello.html https://xxx.xx.xx.xxx/contact_us.html
</VirtualHost>


SSL Configuration

<VirtualHost xxx.xx.xx.xxx:448>
        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/apache.crt
        SSLCertificateKeyFile /etc/apache2/ssl/apache.key
        DocumentRoot /var/www/html
        ServerName 172.29.57.141
</VirtualHost>


What i need is that the server should not take the port in https url, as my site is running at root

http://xxx.xx.xx.xxx/
0
Rocking
Asked:
Rocking
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
You need to change the port 448 to port 443.  443 is the 'normal' HTTPS port and will be used if you do Not select a port number.  http://en.wikipedia.org/wiki/HTTP_Secure

<VirtualHost xxx.xx.xx.xxx:443>
0
 
RockingAuthor Commented:
is there any other way or mapping which can be done to set the port 448 as default port so that the port is not displayed
0
 
Dave BaldwinFixer of ProblemsCommented:
No.  You would have to rewrite all the browsers and web servers in the world to change that.  Why is port 448 important?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now